AsteroidCentroid:

Path: SpacecraftEstimation/OpticalNavigation

% Compute the centroid for an asteroid

 It uses CannyEnhancer, then creates and binary image and finally does
 a circle fit. It also does a mean fit.

 Type AsteroidCentroid for a demo.
--------------------------------------------------------------------------
   Form:
   [x,y,r,xM,yM] = AsteroidCentroid(i,thresh,rF)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   i       (:,:,1 or 3) Image, grayscale or RGB.
   thresh	(1,1) Threshold for binary conversion
   rF      (1,1) Use simplex for the ellipse fit

   -------
   Outputs
   -------
   x     (1,1) Center x using circle fit
   y     (1,1) Center y using circle fit
   r     (1,1) Radius
   xM    (1,1) Center x using mean fit
   yM    (1,1) Center y using mean fit

------------------------------------------------------------------------

Children:

SpacecraftEstimation: EstimationData/Asteroid
Common: CommonData/ImageSCBus
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/ColorMapGrayScale
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/ShowThreeImages
Imaging: ImageData/Mug
Imaging: ImageData/SCImage
Imaging: ImageMatching/CannyEnhancer
Imaging: ImageMatching/CircleFit
Imaging: ImageMatching/GaussianDerivative
Imaging: ImageProcessing/GaussianKernal
Imaging: ImageProcessing/Imager
Imaging: Utilities/ReadImage

Back to the SpacecraftEstimation Module page