Package boofcv.alg.shapes.polygon
Class ContourEdgeIntensity<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.shapes.polygon.ContourEdgeIntensity<T>
public class ContourEdgeIntensity<T extends ImageGray<T>> extends Object
Computes the average value of points sampled outside and inside the contour at regular intervals. At each sample
location along the contour the local slope is computed using another contour point. This is then used to
compute the tangent. Then points inside and outside along the tangent are sampled using bilinear interpolation.
The value of these points are summed up and the average computed.
-
Constructor Summary
Constructors Constructor Description ContourEdgeIntensity(int contourSamples, int tangentSamples, double tangentStep, Class<T> imageType)
Configures how the edge intensity is computed -
Method Summary
Modifier and Type Method Description Class<T>
getInputType()
void
process(List<Point2D_I32> contour, boolean isCCW)
void
setImage(T image)
-
Constructor Details
-
Method Details
-
setImage
-
process
-
getInputType
-