Package boofcv.alg.shapes.ellipse
Class EdgeIntensityEllipse<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.shapes.edge.BaseIntegralEdge<T>
boofcv.alg.shapes.ellipse.EdgeIntensityEllipse<T>
Computes the edge intensity along the an ellipse.
Edge Intensity Definition:The average difference in pixel values. Maximum value is (max pixel val - min pixel val).
-
Field Summary
Fields inherited from class boofcv.alg.shapes.edge.BaseIntegralEdge
integral, integralImage
-
Constructor Summary
ConstructorDescriptionEdgeIntensityEllipse
(double tangentDistance, int numContourPoints, double passThreshold, Class<T> imageType) Configures edge intensity calculation -
Method Summary
Modifier and TypeMethodDescriptiondouble
boolean
process
(EllipseRotated_F64 ellipse) Processes the edge along the ellipse and determines if the edge intensity is strong enough to pass or notMethods inherited from class boofcv.alg.shapes.edge.BaseIntegralEdge
getInputType, setImage, setTransform
-
Field Details
-
averageInside
public double averageInside -
averageOutside
public double averageOutside
-
-
Constructor Details
-
EdgeIntensityEllipse
public EdgeIntensityEllipse(double tangentDistance, int numContourPoints, double passThreshold, Class<T> imageType) Configures edge intensity calculation- Parameters:
tangentDistance
- Distance along tangent it will integratenumContourPoints
- Number of points along the contour it will sample. If ≤ 0 the test will always passpassThreshold
- Threshold for passing. Value: 0 to (max - min) pixel value.imageType
- Type of input image
-
-
Method Details
-
process
Processes the edge along the ellipse and determines if the edge intensity is strong enough to pass or not- Parameters:
ellipse
- The ellipse in undistorted image coordinates.- Returns:
- true if it passes or false if not
-
getEdgeIntensity
public double getEdgeIntensity()
-