public class ScoreLineSegmentEdge<T extends boofcv.struct.image.ImageGray> extends BaseIntegralEdge<T>
integral, integralImage| Constructor and Description |
|---|
ScoreLineSegmentEdge(int numSamples,
java.lang.Class<T> imageType)
Constructor which configures scoring.
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeAverageDerivative(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
double tanX,
double tanY)
Returns average tangential derivative along the line segment.
|
double |
getAverageDown() |
double |
getAverageUp() |
int |
getNumSamples() |
int |
getSamplesInside() |
void |
setImage(T image)
Sets the image which is going to be processed.
|
void |
setNumSamples(int numSamples) |
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 ScoreLineSegmentEdge(int numSamples,
java.lang.Class<T> imageType)
numSamples - Number of points it will sample along an edgeimageType - Type of image it will processpublic void setTransform(boofcv.struct.distort.PixelTransform_F32 undistToDist)
setTransform in class BaseIntegralEdge<T extends boofcv.struct.image.ImageGray>undistToDist - Pixel transformation from undistorted pixels into the actual distorted input image..public void setImage(T image)
setImage in class BaseIntegralEdge<T extends boofcv.struct.image.ImageGray>public double computeAverageDerivative(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
double tanX,
double tanY)
a - start pointb - end pointtanX - unit tangent x-axis. determines length of line integraltanY - unit tangent y-axis determines length of line integralpublic int getSamplesInside()
public int getNumSamples()
public void setNumSamples(int numSamples)
public double getAverageUp()
public double getAverageDown()