Blobify:

Path: SpacecraftEstimation/StarCentroiding

% Group adjacent pixels together into blobs. 
 A bounding box is stored along with the indices of the pixels in the blob.
--------------------------------------------------------------------------
   Form:
   blobs = Blobify(pixels,options,doPlot)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   pixels  (n,m)   Thresholded pixelmap
   options  (.)    Options data structure
                   .minPix
   doPlot   (tf)   Boolean for creating a plot (false)

   -------
   Outputs
   -------
   blobs   (:)    Array of blob structures
                  .r0      (1,1) Bottom row
                  .r1      (1,1) Top row
                  .c0      (1,1) Left-hand column
                  .c1      (1,1) Right-hand column
                  .iPixels (1,:) Indices of all pixels in the blob
                  .nPix    (1,1) Number of pixels in the blob
                  .pMax    (1,1) Maximum value of blob pixels
                  .iMax    (1,1) Index of blob maximum value

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

Children:

SpacecraftEstimation: StarVisualization/DrawBlobs
Common: CommonData/SwooshWatermark
Common: General/Watermark
Common: Graphics/NewFig
Math: Linear/Mag

Back to the SpacecraftEstimation Module page