| Modifier and Type | Method and Description | 
|---|---|
static JFrame | 
DisplayUtilities.display(Polygon input)
Render a polygon to an image and display it. 
 | 
static JFrame | 
DisplayUtilities.display(Polygon input,
       float col)
Render a polygon with a given grey level and display it 
 | 
void | 
Image.drawPolygon(Polygon p,
           int thickness,
           Q col)
Draw the given polygon in the specified colour with the given thickness
 lines. 
 | 
void | 
Image.drawPolygon(Polygon p,
           Q col)
Draw the given polygon in the specified colour. 
 | 
void | 
Image.drawPolygonFilled(Polygon p,
                 Q col)
Draw the given polygon, filled with the specified colour. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
MomentFeature.getEllipseBoundingBox(float sf)
Create a rotated rectangle that fits around an ellipse
 based on the features parameters. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
Caltech101.Record.getContour()
Get the object polygon if it is available. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
Contour
A contour or hierarchical set of contours within an image. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Polygon | 
KeypointVisualizer.getSamplingBox(Keypoint k)
Get the sampling area of an single feature as a polygon. 
 | 
static Polygon | 
KeypointVisualizer.getSamplingBox(Keypoint k,
              float scincr)
Get the sampling area of an single feature as a polygon. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Polygon | 
ConnectedComponent.calculateConvexHull_AndrewsMontone()
Calculate the convex hull using Andrew's monotone chain 2D convex hull
 algorithm. 
 | 
protected Polygon | 
ConnectedComponent.calculateConvexHull_Melkman(List<Pixel> V)
Calculate convex hull using Melkman's algorithm. 
 | 
Polygon | 
ConnectedComponent.calculateConvexHull()
Calculates the convex hull polygon for this connected component using
 Andrew's montone algorithm. 
 | 
Polygon | 
ConnectedComponent.toPolygon()
Converts this connected component into a  
Polygon representation
 by performing a 4-connected boundary trace and converting the resulting
 pixels into vertices. | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
ConnectedComponent.calculateAreaRatio(Polygon ch)
Calculate the ratio of the area of the given polygon to the area of this
 connected component. 
 | 
| Constructor and Description | 
|---|
ConnectedComponent(Polygon poly)
Construct a new connected component from the given polygon. 
 | 
| Constructor and Description | 
|---|
OrientedPolygonExtractionProcessor(Polygon polygon,
                                  float background)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected List<Pair<Point2d>> | 
PiecewiseMeshWarp.polyMatchToPointsMatch(Polygon pa,
                      Polygon pb)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
FImageRenderer.drawPolygon(Polygon p,
           int thickness,
           Float grey)
Draw the given polygon in the specified colour with the given thickness
 lines. 
 | 
void | 
SVGRenderer.drawPolygon(Polygon p,
           int thickness,
           Float[] col)  | 
abstract void | 
ImageRenderer.drawPolygon(Polygon p,
           int thickness,
           Q col)
Draw the given polygon in the specified colour with the given thickness
 lines. 
 | 
void | 
MultiBandRenderer.drawPolygon(Polygon p,
           int thickness,
           T[] grey)
Draw the given polygon in the specified colour with the given thickness
 lines. 
 | 
void | 
ImageRenderer.drawPolygon(Polygon p,
           Q col)
Draw the given polygon in the specified colour. 
 | 
void | 
FImageRenderer.drawPolygonFilled(Polygon p,
                 Float col)  | 
void | 
SVGRenderer.drawPolygonFilled(Polygon p,
                 Float[] col)  | 
void | 
ImageRenderer.drawPolygonFilled(Polygon p,
                 Q col)
Draw the given polygon, filled with the specified colour. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<IndependentPair<Point2d,Point2d>> | 
LiuSamarabanduTextExtractorBasic.calculateHomography(Polygon p)
Calculates the point pairing for a given distorted polygon into
 orthogonal space. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> Polygon[] | 
GeneralFontRenderer.getPolygons(char[] characters,
           int x,
           int y,
           GeneralFontStyle<T> style)
Returns a list of polygons that represent the letters in the given text. 
 | 
static <T> Polygon[] | 
GeneralFontRenderer.getPolygons(String text,
           int x,
           int y,
           GeneralFontStyle<T> style)
Returns a list of polygons that represent the letters in the given text. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
PointList.calculateConvexHull()
Calculate the convex hull of the points using the Graham Scan algorithm. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
TriangulatedPolygon
A polygon that has been broken into triangles. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
RotatedRectangle.asPolygon()  | 
Polygon | 
Rectangle.asPolygon()  | 
Polygon | 
Triangle.asPolygon()  | 
Polygon | 
Circle.asPolygon()  | 
Polygon | 
Polygon.asPolygon()
Convert the shape to a polygon representation 
 | 
Polygon | 
Shape.asPolygon()
Convert the shape to a polygon representation 
 | 
Polygon | 
Ellipse.asPolygon()  | 
Polygon | 
Polygon.calculateConvexHullMelkman()
Calculate convex hull using Melkman's algorithm. 
 | 
Polygon | 
Ellipse.calculateOrientedBoundingBox()
Calculate the oriented bounding box. 
 | 
Polygon | 
Polygon.clone() | 
Polygon | 
Polygon.difference(Polygon p)
Calculates the difference between two polygons and returns a new polygon. 
 | 
Polygon | 
Polygon.getInnerPoly(int index)
Get the inner polygon at the given index. 
 | 
Polygon | 
Polygon.intersect(Polygon p2)
Returns the intersection of this polygon and the given polygon. 
 | 
Polygon | 
Polygon.reduceVertices(double eps)
Reduce the number of vertices in a polygon. 
 | 
Polygon | 
Polygon.roundVertices()
Iterates through the vertices and rounds all vertices to round integers. 
 | 
Polygon | 
Polygon.scaleX(float sc)
Scale the polygon only in the x-direction by the given amount about
 (0,0). 
 | 
Polygon | 
Polygon.scaleXY(float scx,
       float scy)
Scale the polygon by the given amount about (0,0). 
 | 
Polygon | 
Polygon.scaleY(float sc)
Scale the polygon only in the y-direction by the given amount about
 (0,0). 
 | 
Polygon | 
Polygon.transform(Jama.Matrix transform)
Apply a 3x3 transform matrix to a copy of the polygon and return it 
 | 
Polygon | 
Polygon.union(Polygon p2)
Returns the union of this polygon and the given polygon. 
 | 
Polygon | 
Polygon.xor(Polygon p2)
Returns the XOR of this polygon and the given polygon. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Polygon> | 
Polygon.getInnerPolys()
Returns the list of inner polygons. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Polygon.addInnerPolygon(Polygon p)
Add an inner polygon to this polygon. 
 | 
void | 
Polygon.addInnerPolygon(Polygon p,
               boolean inferOuter)
Add an inner polygon to this polygon. 
 | 
Polygon | 
Polygon.difference(Polygon p)
Calculates the difference between two polygons and returns a new polygon. 
 | 
boolean | 
Polygon.equals(Polygon p)
Specific equals method for polygons where the polgyons are tested for the
 vertices being in the same order. 
 | 
Polygon | 
Polygon.intersect(Polygon p2)
Returns the intersection of this polygon and the given polygon. 
 | 
Polygon | 
Polygon.union(Polygon p2)
Returns the union of this polygon and the given polygon. 
 | 
Polygon | 
Polygon.xor(Polygon p2)
Returns the XOR of this polygon and the given polygon. 
 | 
| Constructor and Description | 
|---|
TriangulatedPolygon(Polygon p)
Construct a  
TriangulatedPolygon with a polygon. | 
| Modifier and Type | Method and Description | 
|---|---|
static List<ConvexityDefect> | 
ConvexityDefect.findDefects(Polygon p)
Find the defects of the given polygon. 
 | 
static List<ConvexityDefect> | 
ConvexityDefect.findDefects(Polygon p,
           Polygon hull)
Find the defects of the given polygon, based on the given convex hull 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Polygon | 
GrahamScan.getConvexHull(List<Point2d> Point2ds)
Returns the convex hull of the Point2ds created from the list
  
Point2ds. | 
Polygon | 
PolygonUtils.intersection(Polygon p1,
            Polygon p2)
Return the intersection of  
p1 and p2 where the
 return type is of PolyDefault. | 
Polygon | 
PolygonUtils.intersection(Polygon p1,
            Polygon p2,
            Class<Polygon> polyClass)
Return the intersection of  
p1 and p2 where the
 return type is of polyClass. | 
Polygon | 
PolygonUtils.union(Polygon p1,
     Polygon p2)
Return the union of  
p1 and p2 where the return
 type is of PolyDefault. | 
Polygon | 
PolygonUtils.union(Polygon p1,
     Polygon p2,
     Class<Polygon> polyClass)
Return the union of  
p1 and p2 where the return
 type is of polyClass. | 
Polygon | 
PolygonUtils.xor(Polygon p1,
   Polygon p2)
Return the xor of  
p1 and p2 where the return
 type is of PolyDefault. | 
Polygon | 
PolygonUtils.xor(Polygon p1,
   Polygon p2,
   Class<Polygon> polyClass)
Return the xor of  
p1 and p2 where the return
 type is of polyClass. | 
| Modifier and Type | Method and Description | 
|---|---|
protected static int | 
RotatingCalipers.getIndex(Polygon convexHull,
        RotatingCalipers.Corner corner)  | 
static RotatedRectangle | 
RotatingCalipers.getMinimumBoundingRectangle(Polygon poly,
                           boolean assumeSimple)
Use the rotating calipers algorithm to optimally find the minimum sized
 rotated rectangle that encompasses the outer shell of the given polygon. 
 | 
Polygon | 
PolygonUtils.intersection(Polygon p1,
            Polygon p2)
Return the intersection of  
p1 and p2 where the
 return type is of PolyDefault. | 
Polygon | 
PolygonUtils.intersection(Polygon p1,
            Polygon p2,
            Class<Polygon> polyClass)
Return the intersection of  
p1 and p2 where the
 return type is of polyClass. | 
Polygon | 
PolygonUtils.union(Polygon p1,
     Polygon p2)
Return the union of  
p1 and p2 where the return
 type is of PolyDefault. | 
Polygon | 
PolygonUtils.union(Polygon p1,
     Polygon p2,
     Class<Polygon> polyClass)
Return the union of  
p1 and p2 where the return
 type is of polyClass. | 
Polygon | 
PolygonUtils.xor(Polygon p1,
   Polygon p2)
Return the xor of  
p1 and p2 where the return
 type is of PolyDefault. | 
Polygon | 
PolygonUtils.xor(Polygon p1,
   Polygon p2,
   Class<Polygon> polyClass)
Return the xor of  
p1 and p2 where the return
 type is of polyClass. | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
PolygonUtils.intersection(Polygon p1,
            Polygon p2,
            Class<Polygon> polyClass)
Return the intersection of  
p1 and p2 where the
 return type is of polyClass. | 
Polygon | 
PolygonUtils.union(Polygon p1,
     Polygon p2,
     Class<Polygon> polyClass)
Return the union of  
p1 and p2 where the return
 type is of polyClass. | 
Polygon | 
PolygonUtils.xor(Polygon p1,
   Polygon p2,
   Class<Polygon> polyClass)
Return the xor of  
p1 and p2 where the return
 type is of polyClass. | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
TopPolygonNode.getResult(Class<Polygon> polyClass)  | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
TopPolygonNode.getResult(Class<Polygon> polyClass)  | 
| Modifier and Type | Method and Description | 
|---|---|
Polygon | 
AudioOverviewVisualisation.AudioOverviewGenerator.getChannelPolygon(int channel,
                 boolean mirror,
                 int width)
Returns a polygon representing the channel overview. 
 |