Re: circle fit to array with error term
- From: "Chandan" <chandan.das@xxxxxxxxx>
- Date: 23 Aug 2006 12:28:06 -0700
Ann wrote:
I have 1200X1200 arrays (images input with imread function)
that represent a time series of a dynamic irregular circlular black
blob on a white field. One "circle" at one time step per array.
I need to fit the largest possible radius circle to the interior of
the circular blob shape and have an output error of the fit.
Thanks for any help.
First sum the pixel values of each image to get a total intensity
value:
sum(sum(arrayElement1);
then you can use morphological filtering to highlight the edges of your
image (see Image Processing Toolbox help for this one):
imcontour(arrayElement1);
Then you could draw circles of increasing radius until they intesect
the edges of the contour plot. If the images are binary, then its
really easy, just recreate the circle, and subtract the sum of this
from the sum obtained above. If not, then you just sum the elements of
the first image that fall inside the circle and subtract this value
from the above sum.
Hope this helps
-----------------------------------------------------------------
Chandan Das
MIT Department of Mechanical Engineering
.
- References:
- circle fit to array with error term
- From: Ann
- circle fit to array with error term
- Prev by Date: Re: Continuos Analog Output
- Next by Date: NI, RTSI synchronisation with DAQ 2.8.1
- Previous by thread: circle fit to array with error term
- Next by thread: Re: circle fit to array with error term
- Index(es):
Relevant Pages
|