Package boofcv.alg.shapes.edge
Class BaseIntegralEdge<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.shapes.edge.BaseIntegralEdge<T>
- Direct Known Subclasses:
EdgeIntensityEllipse
,ScoreLineSegmentEdge
,SnapToEllipseEdge
,SnapToLineEdge
public class BaseIntegralEdge<T extends ImageGray<T>> extends Object
Base class for computing line integrals along lines/edges.
-
Field Summary
Fields Modifier and Type Field Description protected ImageLineIntegral
integral
protected GImageGray
integralImage
-
Constructor Summary
Constructors Constructor Description BaseIntegralEdge(Class<T> imageType)
-
Method Summary
Modifier and Type Method Description Class<T>
getInputType()
void
setImage(T image)
Sets the image which is going to be processed.void
setTransform(@Nullable PixelTransform<Point2D_F32> undistToDist)
Used to specify a transform that is applied to pixel coordinates to bring them back into original input image coordinates.
-
Field Details
-
integral
-
integralImage
-
-
Constructor Details
-
BaseIntegralEdge
-
-
Method Details
-
setTransform
Used to specify a transform that is applied to pixel coordinates to bring them back into original input image coordinates. For example if the input image has lens distortion but the edge were found in undistorted coordinates this code needs to know how to go from undistorted back into distorted image coordinates in order to read the pixel's value.- Parameters:
undistToDist
- Pixel transformation from undistorted pixels into the actual distorted input image.
-
setImage
Sets the image which is going to be processed. This must be called first. -
getInputType
-