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) |
getInputType, setTransformpublic 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 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()