Re: circle fit to array with error term




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

.



Relevant Pages

  • circle fit to array with error term
    ... I have 1200X1200 arrays ... that represent a time series of a dynamic irregular circlular black ... One "circle" at one time step per array. ... the circular blob shape and have an output error of the fit. ...
    (comp.soft-sys.matlab)
  • Re: How many rational-not integral points are there on the curve x^2+y^2-2=
    ... Your curve is a circle, and the point is on it. ... Integers that are 3 mod 4 are not the sum of two squares. ...
    (sci.math)
  • I5. Circular Prime Sums
    ... 'We place some positive whole numbers around a circle. ... We call this arrangement a sum circle. ... If all the boxes contain primes, the sum circle is called a prime sum ... AUSTRALIAN MATHEMATICS TRUST IN ASSOCIATION WITH THE AUSTRALIAN ...
    (sci.math)
  • Re: circle fit to array with error term
    ... I need to fit the largest possible radius circle to the ... First sum the pixel values of each image to get a total intensity ... I also tried closed spline fit, but had some trouble with consistency ...
    (comp.soft-sys.matlab)
  • Re: Quantum Pi
    ... Robert J. Kolker wrote: ... If you can accept this as a circle then Pi is 3. ... > Why not use a square. ... Just from the number of decompositions of n in sum of two squares being ...
    (sci.math)