|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<BlobMeas>
net.grelf.grip.BlobMeasList
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.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
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 |
showBrightestBlobs(ImFrame imframe)
Draw brightest blobs into the GlassPane of the given ImFrame and redisplay the image. |
java.lang.StringBuffer |
toXML()
|
| Methods inherited from class java.util.LinkedList |
|---|
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, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Methods inherited from interface java.util.Deque |
|---|
iterator |
| Constructor Detail |
|---|
public BlobMeasList(ImFrame imframe)
| Method Detail |
|---|
public ImFrame getImFrame()
public BlobMeasList crop(java.awt.Point pt1,
java.awt.Point pt2)
public void drawBoundaries(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 saveAsXML(java.lang.String filePath)
public java.lang.StringBuffer toXML()
public static BlobMeasList loadFromXML(java.lang.String filePath)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||