|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Polygon
org.opensourcephysics.cabrillo.tracker.TRegion
public class TRegion
This is a region determined by inside and outside pixel values.
| Field Summary |
|---|
| Fields inherited from class java.awt.Polygon |
|---|
bounds, npoints, xpoints, ypoints |
| Constructor Summary | |
|---|---|
TRegion(java.awt.image.BufferedImage image,
int x0,
int y0)
Constructs a region starting from a specified image pixel position. |
|
| Method Summary | |
|---|---|
void |
findEdge()
|
TPoint |
getCenter()
|
| Methods inherited from class java.awt.Polygon |
|---|
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TRegion(java.awt.image.BufferedImage image,
int x0,
int y0)
image - the imagex0 - the starting x positiony0 - the starting y position| Method Detail |
|---|
public TPoint getCenter()
public void findEdge()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||