07-05-2010
02:54 AM
- last edited on
07-07-2010
11:26 AM
by
Support
Circle detection is very interesting function which is used for detection circles in binary image to put it simply but this function has lot of application. There is no direct function in labview to determine the width of say an irregular pipe. This function I find it very handy and useful.
In the forum I have answered lot of question on how to extract the circle detected and how to overlay the circle found.
ROI from circle detection
The circle detection does not return a clear bounding box for us to overlay or extract. The "circle data" return the centre x,y and the radius.
. The rectangle top,left and bottom,right can be found as shown below
x-radius - Top
y-radius - Left
x+radius - Bottom
y+radius - Right.
With this using a build array we can extract or overlay the circle found. But If we want to extract multiple circles, We can do the following
A for loop as shown above can be used to extract individual circles. Again the vi shown above will display only the last circle extracted. There are lot of way you can use this to change the way you view the result.
Example
Processed image Input image
Overlayed image
09-07-2010 02:12 PM
Muks
I fopunf a way to only extract the circle and not its surroundings. You could use the image
mask and the work to get only the circular region and not the square. Have you tried it.
yeshwanth
11-09-2012 01:37 AM
11-09-2012 01:40 AM
attach processed image,thank you