Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hough Transform sort output vector

Hello!

I wrote a code for detcting some circle, but i dont understand how the Hough Transform sort the output.

My program is runing like this

  1. I have six circle that are positioned like this

image description

  1. i need to detect the cirlces and then make de half distance between the ccenters of circles two by two like this

image description

  • the blue dots are the half distances between circles two by two

Now the real example is something like this

For case 1 it works

image description

But when i process a photo like this

image description

Circles are sorted like this :

image description

HERE IS MY CODE : http://pastebin.com/9WrsMtNQ

Hough Transform sort output vector

Hello!

I wrote a code for detcting some circle, but i dont understand how the Hough Transform sort the output.

My program is runing like this

  1. I have six circle that are positioned like this

image description

  1. i need to detect the cirlces and then make de half distance between the ccenters of circles two by two like this

image description

  • the blue dots are the half distances between circles two by two

Now the real example is something like this

For case 1 it works

image description

But when i process a photo like this

image description

Circles are sorted like this :

image description

HERE IS MY CODE : http://pastebin.com/9WrsMtNQ

Hough Transform sort output vector

Hello!

I wrote a code for detcting some circle, but i dont understand how the Hough Transform sort the output.

My program is runing like this

  1. I have six circle that are positioned like this

image description

  1. i need to detect the cirlces and then make de half distance between the ccenters of circles two by two like this

image description

  • the blue dots are the half distances between circles two by two

Now the real example is something like this

For case 1 it works

image description

But when i process a photo like this

image description

Circles are sorted like this :

image description

HERE IS MY CODE : http://pastebin.com/9WrsMtNQ