public class PolygonEdgeScore<T extends boofcv.struct.image.ImageSingleBand>
extends java.lang.Object
| Constructor and Description |
|---|
PolygonEdgeScore(double cornerOffset,
double tangentDistance,
int numSamples,
double thresholdScore,
java.lang.Class<T> imageType)
Constructor which configures scoring.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageEdgeIntensity() |
double |
getCornerOffset() |
double |
getTangentDistance() |
double |
getThresholdScore() |
void |
setCornerOffset(double cornerOffset) |
void |
setImage(T image)
Sets the image which is going to be processed.
|
void |
setTangentDistance(double tangentDistance) |
void |
setThresholdScore(double thresholdScore) |
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.
|
boolean |
validate(georegression.struct.shapes.Polygon2D_F64 polygon)
Checks to see if its a valid polygon or a false positive by looking at edge intensity
|
public PolygonEdgeScore(double cornerOffset,
double tangentDistance,
int numSamples,
double thresholdScore,
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 edgethresholdScore - Minimum edge score.imageType - 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 validate(georegression.struct.shapes.Polygon2D_F64 polygon)
polygon - The polygon being testedpublic double getCornerOffset()
public void setCornerOffset(double cornerOffset)
public double getTangentDistance()
public void setTangentDistance(double tangentDistance)
public double getThresholdScore()
public void setThresholdScore(double thresholdScore)
public double getAverageEdgeIntensity()