public class PolygonEdgeIntensity<T extends boofcv.struct.image.ImageGray>
extends java.lang.Object
| Constructor and Description |
|---|
PolygonEdgeIntensity(double cornerOffset,
double tangentDistance,
int numSamples,
java.lang.Class<T> imageType)
Constructor which configures scoring.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIntensity(boolean insideDark,
double threshold)
Checks the edge intensity against a threshold.
|
boolean |
computeEdge(georegression.struct.shapes.Polygon2D_F64 polygon,
boolean ccw)
Checks to see if its a valid polygon or a false positive by looking at edge intensity
|
double |
getAverageInside() |
double |
getAverageOutside() |
double |
getCornerOffset() |
double |
getTangentDistance() |
void |
setCornerOffset(double cornerOffset) |
void |
setImage(T image)
Sets the image which is going to be processed.
|
void |
setTangentDistance(double tangentDistance) |
void |
setTransform(boofcv.struct.distort.PixelTransform_F32 undistToDist)
Used to specify a transform that is applied to pixel coordinates to bring them back into original input
image coordinates.
|
public PolygonEdgeIntensity(double cornerOffset,
double tangentDistance,
int numSamples,
java.lang.Class<T> imageType)
cornerOffset - Number of pixels away from corner it will start samplingtangentDistance - How far from the line it will sample tangentiallynumSamples - Number of points it will sample along an edgeimageType - Type of image it will processpublic void setTransform(boofcv.struct.distort.PixelTransform_F32 undistToDist)
undistToDist - Pixel transformation from undistorted pixels into the actual distorted input image..public void setImage(T image)
public boolean computeEdge(georegression.struct.shapes.Polygon2D_F64 polygon,
boolean ccw)
polygon - The polygon being testedccw - True if the polygon is counter clockwisepublic boolean checkIntensity(boolean insideDark,
double threshold)
insideDark - is the inside of the polygon supposed to be dark or light?threshold - threshold for average differencepublic double getCornerOffset()
public void setCornerOffset(double cornerOffset)
public double getTangentDistance()
public void setTangentDistance(double tangentDistance)
public double getAverageInside()
public double getAverageOutside()