public class BlobMeasList
Holds a list of BlobMeas objects sorted in descending order of brightness.
The method insert () has been added to ensure that objects are inserted
into the list in that required order, so it does not have to
be sorted as a separate step.
Enable this list to be assigned to a different frame, in exceptional
circumstances (eg, in CometProcessor when segmenting on split intensity
public BlobMeasList crop(java.awt.Point pt1,
Modify the list for its image being cropped to a rectangle formed by the 2
points as diagonal.
Blobs lying on or outside the cropping rectangle are removed from the list.
Measurements of blobs and the blobs themselves are offset to the new origin
(which is not necessarily either pt1 or pt2 of course).
Insert the BlobMeas object at the right place so the list is always in
descending order of brightness.
NB: I first tried @Override public boolean add (BlobMeas meas) but that
caused stack overflow at run time - evidently the compiler did not
interpret the generics correctly.
Draw brightest blobs into the GlassPane of the given ImFrame and
redisplay the image. The number of brightest blobs to show is determined
by Config. Blobs are labelled with numbers, from 1 for the brightest.