-------------------------------------------------------------------------------
Finds the centroids of bright objects in the pixelMap
-------------------------------------------------------------------------------
Form:
starMeasurement = PixelMapCentroid( pixelMap, threshold, show )
-------------------------------------------------------------------------------
------
Inputs
------
pixelMap (1,:) PixelMap file name or 'demo'
If empty will open a dialog box
threshold (1,1) Fraction of maximum value Default is 0.99
show If entered, will show pictures
-------
Outputs
-------
starMeasurement (1,1) Data structure
.pixelLocation (2,m) Coordinates of centroid [x;y]
.intensity (1,m) Intensity of each object
-------------------------------------------------------------------------------