org.ddogleg.fitting.modelset
Interface DistanceFromModel<Model,Point>
-
- All Known Subinterfaces:
- DistanceModelMonoPixels<Model,Point>, DistanceModelStereoPixels<Model,Point>
- All Known Implementing Classes:
- DistanceAffine2D, DistanceAffine2DSq, DistanceEpipolarConstraint, DistanceFromLine, DistanceFromMeanModel, DistanceFromModelResidual, DistanceFromModelResidualN, DistanceHomographyPixelSq, DistanceHomographySq, DistancePlane2DToPixelSq, DistanceScaleTranslate2DSq, DistanceScaleTranslateRotate2DSq, DistanceSe2Sq, DistanceSe3SymmetricSq, DistanceTranGivenRotSq, GridLineModelDistance, PnPDistanceReprojectionSq, PnPStereoDistanceReprojectionSq, RandomDistanceModel, TestRansac.DebugModelStuff
public interface DistanceFromModel<Model,Point>Computes the distance a sample point is from the provided model.
Example: If the model is a rigid body transformation then there are 6 model parameters, 3 for rotation and 3 for translation. The sample point is the initial location of a point in 3D space before the transform has been applied and the observed location after the transform has been applied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcomputeDistance(java.util.List<Point> points, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.doublecomputeDistance(Point pt)Computes the distance the point is from the model.voidsetModel(Model model)Sets the model parameters.
-
-
-
Method Detail
-
setModel
void setModel(Model model)
Sets the model parameters.- Parameters:
model- Model parameters.
-
computeDistance
double computeDistance(Point pt)
Computes the distance the point is from the model.- Parameters:
pt- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
void computeDistance(java.util.List<Point> points, double[] distance)
Computes the distance a set of points is from the model and saves the results in the provided array.- Parameters:
points- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG