edu.berkeley.guir.papier_mache.vision
Class VisionPhobCollection
java.lang.Object
edu.berkeley.guir.papier_mache.Phob
edu.berkeley.guir.papier_mache.vision.VisionPhob
edu.berkeley.guir.papier_mache.vision.VisionPhobCollection
- All Implemented Interfaces:
- edu.berkeley.guir.lib.util.ToShortStringable
- public class VisionPhobCollection
- extends VisionPhob
Contains a collection of VisionPhobs and provides aggregate information about the entire collection.
- Author:
- Ray Su ( raysu(AT)cal.berkeley.edu ), Scott Klemmer ( srk(AT)cs.berkeley.edu )
Methods inherited from class edu.berkeley.guir.papier_mache.vision.VisionPhob |
getAlignedBoundingBox, getBounds, getCenter, getIcon, getImageSize, getLastUpdateTime, getMajorAxisLength, getMeanColorRGB, getMeanIntensity, getMinorAxisLength, getRawImage, getSize, isNew, rotatePointAroundCenter, toShortString, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
VisionPhobCollection
public VisionPhobCollection(PhobProducer source)
getTheta
public double getTheta()
- Returns the theta (angle of major axis) for phob represented by the VisionPhobCollection
- Overrides:
getTheta
in class VisionPhob
iterator
public java.util.Iterator iterator()
- Returns:
- the iterator associated with the Collection
getCollectionSize
public int getCollectionSize()
- Returns:
- the size of the collection
addPhob
public void addPhob(VisionPhob phob)
contains
public boolean contains(VisionPhob phob)
- Returns:
- true if this collection contains the specified phob
isPhobInside
public boolean isPhobInside(VisionPhob phob)
- Returns:
- true if and only if phob is completely contained by this Collection
addIfClose
public boolean addIfClose(VisionPhob phob,
int maxDist)
equals
public boolean equals(java.lang.Object object)
- This method is still buggy.
- Overrides:
equals
in class VisionPhob