# hough voting, turning transformation into a vote

I need help understanding how/what does it mean to "turn" a transformation parameters into a vote. I know how to recover the transformation parameters (in my case: 6 DOF), but how this turns into a vote in 6D (??) space ?

Thank You !

1. Determine the accuracy you will need for each of your six DOF. Don't use larger accuracy than you actually need, since it will get you in trouble later, when you have to find maxima in the Hough Space.
2. Determine the range of possible transformation parameters for you six DOF.
3. Now create a six dimensional array A (one dimension for each DOF) where each dimension has the size range/accuracy for the current DOF. This array is your Hough Space.
4. Now, for any given vector v = [DOF1, DOF2, DOF3, DOF4, DOF5, DOF6] increment the bin in A in which v falls. You have now turned this single vector of transformation parameters onto a vote in the Hough Space,

2D example:

1. x is in the range [1;6] and y also in the range [1;6].

2. x should be found with an accuracy of one whereas y only needs an accuracy of two.

3. A(x,y) looks like this:

0;0;0
0;0;0
0;0;0
0;0;0
0;0;0
0;0;0

where the bold bin corresponds to x= and y=[1;2].

So if you would like to cast a vote for a vector v(x,y)=[3,1] you would simply increment the bold zero by one. Votes for v(x,y)=[3,2] would in this case fall in the same bin, because of the reduced accuracy needed for y, whereas votes for v(x,y)=[3,3] would go into the bin to the right.

I hope this was helpful, and did not just confuse you more. ;)

A vote is just an increment in an array.

for example

[0, 0, 0, 0, 0, 0;
0, 0, 1, 0, 0, 0;
0, 0, 0, 0, 0, 0;
0, 0, 0, 0, 0, 0]


would be a vote for (2,3). You can extend that to however many dimensions you need
{"ft_lang_label":"__label__en","ft_lang_prob":0.88891196,"math_prob":0.9790049,"size":1811,"snap":"2020-24-2020-29","text_gpt3_token_len":554,"char_repetition_ratio":0.12617598,"word_repetition_ratio":0.2645349,"special_character_ratio":0.30535614,"punctuation_ratio":0.18574513,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9911081,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-11T17:49:25Z\",\"WARC-Record-ID\":\"<urn:uuid:c3c61fdb-9658-4ce9-a364-fe541cc1994b>\",\"Content-Length\":\"150020\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4a8c0ac6-1d28-4ea6-a30c-12265941c0a5>\",\"WARC-Concurrent-To\":\"<urn:uuid:0ff858b7-4963-4670-bf22-ee08fcfc90bc>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://dsp.stackexchange.com/questions/2722/hough-voting-turning-transformation-into-a-vote/2727\",\"WARC-Payload-Digest\":\"sha1:JVILB26UWNOWYYSPOI6PS3YMRXUMPOSN\",\"WARC-Block-Digest\":\"sha1:5OT7JBMDPA2FZQYUPBF6DLDQXN3BFBBB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655934052.75_warc_CC-MAIN-20200711161442-20200711191442-00324.warc.gz\"}"}