public class BlobMeasList extends java.util.LinkedList<BlobMeas> implements java.io.Serializable
Constructor and Description |
---|
BlobMeasList(ImFrame imframe)
The imframe is needed so that when blob data are deserialised from file the
image from which they were obtained can also be opened.
|
Modifier and Type | Method and Description |
---|---|
BlobMeasList |
crop(java.awt.Point pt1,
java.awt.Point pt2)
Modify the list for its image being cropped to a rectangle formed by the 2
points as diagonal.
|
void |
drawBoundaries(ImFrame imframe)
Draw boundaries of all blobs in the list into the GlassPane of the given
ImFrame and redisplay the image.
|
void |
drawRegions(ImFrame imframe)
Draw regions of all blobs in the list into the GlassPane of the given
ImFrame and redisplay the image.
|
ImFrame |
getImFrame() |
BlobMeas |
getNearestBlob(Blob blob)
Find the nearest neighbour to the given blob.
|
BlobMeas |
getNearestBlob(int xx,
int yy)
Find the blob with centre nearest to given point (xx, yy).
|
boolean |
insert(BlobMeas meas)
Insert the BlobMeas object at the right place so the list is always in
descending order of brightness.
|
static BlobMeasList |
loadFromXML(java.lang.String filePath) |
void |
saveAsXML(java.lang.String filePath) |
void |
setImFrame(ImFrame frame)
Enable this list to be assigned to a different frame, in exceptional
circumstances (eg, in CometProcessor when segmenting on split intensity
frame).
|
void |
showBrightestBlobs(ImFrame imframe)
Draw brightest blobs into the GlassPane of the given ImFrame and
redisplay the image.
|
void |
showUncircular(ImFrame imFrame) |
java.lang.StringBuffer |
toXML() |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public BlobMeasList(ImFrame imframe)
public ImFrame getImFrame()
public void setImFrame(ImFrame frame)
public BlobMeasList crop(java.awt.Point pt1, java.awt.Point pt2)
public void drawBoundaries(ImFrame imframe)
public void drawRegions(ImFrame imframe)
public BlobMeas getNearestBlob(int xx, int yy)
public BlobMeas getNearestBlob(Blob blob)
public boolean insert(BlobMeas meas)
public void showBrightestBlobs(ImFrame imframe)
public void showUncircular(ImFrame imFrame)
public void saveAsXML(java.lang.String filePath)
public java.lang.StringBuffer toXML()
public static BlobMeasList loadFromXML(java.lang.String filePath)