public class PolygonEdgeScore<T extends boofcv.struct.image.ImageSingleBand> extends BaseIntegralEdge<T>
integral, integralImage| 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() |
int |
getNumSamples() |
double |
getTangentDistance() |
double |
getThresholdScore() |
protected double |
scoreLine(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
double tanX,
double tanY) |
void |
setCornerOffset(double cornerOffset) |
void |
setImage(T image)
Sets the image which is going to be processed.
|
void |
setNumSamples(int numSamples) |
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)
setTransform in class BaseIntegralEdge<T extends boofcv.struct.image.ImageSingleBand>undistToDist - Pixel transformation from undistorted pixels into the actual distorted input image..public void setImage(T image)
setImage(ImageSingleBand) first.setImage in class BaseIntegralEdge<T extends boofcv.struct.image.ImageSingleBand>public boolean validate(georegression.struct.shapes.Polygon2D_F64 polygon)
polygon - The polygon being testedprotected double scoreLine(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
double tanX,
double tanY)
public double getCornerOffset()
public void setCornerOffset(double cornerOffset)
public double getTangentDistance()
public void setTangentDistance(double tangentDistance)
public int getNumSamples()
public void setNumSamples(int numSamples)
public double getThresholdScore()
public void setThresholdScore(double thresholdScore)
public double getAverageEdgeIntensity()