Thank you all!
Full ellipse detection is rarely performed because it is very slow.
It requires a 5 dimensional parameter space - as opposed to 2 for
straight line detection and 3 for circle detection. Is there anything
you know about the ellipses that can reduce the number of parameters
used to represent them? For example, orientation, size, eccentricity,
position. If you're looking for a particular shape and orientation
ellipse and you only want to find the position then you can adapt a
circle detection algorithm, from the file exchange, to draw ellipses
in the voting space instead of circles.
I believe that the Hough transform functions that come with Matlab
are for straight line detection only.
Pete
Thank's a lot Pete,
well my project is to make face detection from images,
I can suppose that the face orientation is fixed, I suppose
that the axes which describe the vertical semimajor axe is longer than
horizontal axe.
I'm tryin to modify that implementation of Hough Transform
http://basic-eng.blogspot.com/2006/01/hough-transform-for-circle-detection_23.html
but i can't understand how modify it.
I understand that i fix for any iteration any radius value and
horizontal axe.
If you have some code example or pseudo-code algorithm and you can
send me it
i'm really glad to You.
Excuse for my english.
Thank you
EoD
Seems to be describing a Matlab system successfully doing what you
are attempting, you might be able to contact the University/Author
and get more detail.
In addition, I suggest you Google "Generalized Hough Transform"; from
memory I think that the ellipse is one shape that can easily be
configured to work with it, in as much as the so called parameter
table can be readily computed, rather than being empirically derived
as is necessary with more abstract shapes.
Hope that is some small help.
Regards
Dave Robinson
Here's my code for circle detection
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9833&objectType=file>
It's quite complex but highly optimized. You may be better off using
one of the simpler but slower implementations in order to convert it
for ellipse detection.
The basic idea is to draw a circle/ellipse around each edge point in
a voting space. So you just need to use the equation of an ellipse
instead of the equation of a circle. I guess the eccentricities will
change slightly so you'll have to repeat your detection over a range
of different eccentricities and sizes. I don't have any code for
this.
Is a face really close enough to an ellipse to be detected? What
about hair, etc?
Pete
Hi all i've released one algorithm for ellipse detection this is not
optimized,
anyone want to take a look of my code to give me some advice to
optimize my code?
Thanks all for your supports and helpful advices :D
IG
I'm going to jump on the band wagon and request
the code as well!
Thanks Much!
EoD <g.iac...@gmail.com> wrote in message <1181904572....@u2g2000hsc.googlegroups.com>...
Hey,
Could you please give me a chance to take a look at your ellipse detection code? Thank you
K
If you can send me the code, I'll be very happy
EoD <g.iac...@gmail.com> wrote in message <1182297362.8...@q69g2000hsb.googlegroups.com>...
EoD <g.iac...@gmail.com> wrote in message <1182297362.8...@q69g2000hsb.googlegroups.com>...
Łukasz
Is the code posted somewhere? If not, could you please send it to me? Thank you!
Sample MATLAB code is available for Xie and Ji's Ellipse Detection is available in the Wikipedia article about Hough Transforms - see link. Unfortunately, though it is just code and there isn't any test data or unit tests to confirm its operation. My initial investigations indicate that there are some problems with this code.
I'm attempting to detect ellipses in ultrasound images for an academic project, so I would be delighted if anyone could provide me with access to working code with tests for ellipse detection under any sort of open source, academic or non-commercial use licence. This would save me a few weeks getting the wikipedia code into some sort of useful state.
I would be interested in hearing from anyone who wants to collaborate on providing MatLab ellipse detection functions written to professional standards with a view to making them freely available to academic researchers.
http://en.wikipedia.org/wiki/Hough_transform
1. YH Xie and Q Ji, “A new efficient ellipse detection method,” 16TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION, VOL II, (2002): 957-960.