public class StandardContourFilter extends java.lang.Object implements ContourFilter
Constructor and Description |
---|
StandardContourFilter(Range area,
Range fullness,
Range aspectRatio,
double imageArea)
Create a standard contour filter.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<org.opencv.core.MatOfPoint> |
filterContours(java.util.List<org.opencv.core.MatOfPoint> contours)
Filter a list of contours.
|
Range |
getArea()
Deprecated.
|
Range |
getAspectRatio()
Deprecated.
|
Range |
getFullness()
Deprecated.
|
double |
getImageArea()
Deprecated.
|
void |
setArea(Range area)
Deprecated.
|
void |
setAspectRatio(Range aspectRatio)
Deprecated.
|
void |
setFullness(Range fullness)
Deprecated.
|
void |
setImageArea(double imageArea)
Deprecated.
|
public StandardContourFilter(Range area, Range fullness, Range aspectRatio, double imageArea)
area
- The percent of the total image area the target's bounding rectangle takes up.fullness
- The percent of target's area to the target's bounding rectangle's area.aspectRatio
- The aspect ratio of the target's bounding rectangle (width / height)@Deprecated public Range getArea()
@Deprecated public void setArea(Range area)
@Deprecated public Range getFullness()
@Deprecated public void setFullness(Range fullness)
@Deprecated public Range getAspectRatio()
@Deprecated public void setAspectRatio(Range aspectRatio)
@Deprecated public double getImageArea()
@Deprecated public void setImageArea(double imageArea)
public java.util.List<org.opencv.core.MatOfPoint> filterContours(java.util.List<org.opencv.core.MatOfPoint> contours)
ContourFilter
filterContours
in interface ContourFilter
contours
- The contours to filter.