public class ConvexityDefect
extends java.lang.Object
| Constructor and Description |
|---|
ConvexityDefect(IntPoint point,
int start,
int end,
double depth)
Initializes a new instance of the ConvexityDefect class.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDepth()
Gets the depth of the defect (highest distance from the hull to any of the points in the contour).
|
int |
getEnd()
Gets the ending index of the defect in the contour.
|
IntPoint |
getPoint()
Gets the most distant point from the hull characterizing the defect.
|
int |
getStart()
Gets the starting index of the defect in the contour.
|
void |
setDepth(double depth)
Sets the depth of the defect (highest distance from the hull to any of the points in the contour).
|
void |
setEnd(int end)
Sets the ending index of the defect in the contour.
|
void |
setPoint(IntPoint point)
Sets the most distant point from the hull characterizing the defect.
|
void |
setStart(int start)
Sets the starting index of the defect in the contour.
|
public ConvexityDefect(IntPoint point, int start, int end, double depth)
point - IntPoint.start - Start.end - End.depth - Depth.public double getDepth()
public void setDepth(double depth)
depth - Depth.public int getEnd()
public void setEnd(int end)
end - End.public IntPoint getPoint()
public void setPoint(IntPoint point)
point - IntPoint.public int getStart()
public void setStart(int start)
start - Start.