Class TRegion
java.lang.Object
java.awt.Polygon
org.opensourcephysics.cabrillo.tracker.TRegion
- All Implemented Interfaces:
Shape
,Serializable
This is a region determined by inside and outside pixel values.
- Author:
- Douglas Brown
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTRegion
(BufferedImage image, int x0, int y0) Constructs a region starting from a specified image pixel position. -
Method Summary
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
-
Constructor Details
-
TRegion
Constructs a region starting from a specified image pixel position.- Parameters:
image
- the imagex0
- the starting x positiony0
- the starting y position
-
-
Method Details
-
getCenter
Gets the center point of the region.- Returns:
- the center
-
findEdge
public void findEdge()Finds and traces the edge that defines the inside/outside of the region.
-