boofcv.alg.feature.detect.line.gridline
Class GridLineModelDistance
- java.lang.Object
-
- boofcv.alg.feature.detect.line.gridline.GridLineModelDistance
-
- All Implemented Interfaces:
- DistanceFromModel<LinePolar2D_F32,Edgel>
public class GridLineModelDistance extends java.lang.Object implements DistanceFromModel<LinePolar2D_F32,Edgel>
Computes the distance of a point from the line.
-
-
Constructor Summary
Constructors Constructor and Description GridLineModelDistance(float angleTolerance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeDistance(Edgel pt)Computes the distance the point is from the model.voidcomputeDistance(java.util.List<Edgel> edgels, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.voidsetModel(LinePolar2D_F32 lineParam)Sets the model parameters.
-
-
-
Method Detail
-
setModel
public void setModel(LinePolar2D_F32 lineParam)
Description copied from interface:DistanceFromModelSets the model parameters.- Specified by:
setModelin interfaceDistanceFromModel<LinePolar2D_F32,Edgel>- Parameters:
lineParam- Model parameters.
-
computeDistance
public double computeDistance(Edgel pt)
Description copied from interface:DistanceFromModelComputes the distance the point is from the model.- Specified by:
computeDistancein interfaceDistanceFromModel<LinePolar2D_F32,Edgel>- Parameters:
pt- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
public void computeDistance(java.util.List<Edgel> edgels, double[] distance)
Description copied from interface:DistanceFromModelComputes the distance a set of points is from the model and saves the results in the provided array.- Specified by:
computeDistancein interfaceDistanceFromModel<LinePolar2D_F32,Edgel>- Parameters:
edgels- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG