Package boofcv.alg.feature.associate
Class AssociateImageDistanceEuclideanSq
java.lang.Object
boofcv.alg.feature.associate.AssociateImageDistanceEuclideanSq
- All Implemented Interfaces:
AssociateImageDistanceFunction
public class AssociateImageDistanceEuclideanSq
extends Object
implements AssociateImageDistanceFunction
Computes the Euclidean distance squared between two points for association
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
convertPixelsToDistance
(double pixels) Converts a distance specified in pixels into the output distanec measureCopy for concurrency.double
distance
(int index, Point2D_F64 pixel) Distance from the sourcevoid
setSource
(int index, Point2D_F64 pixel) The source point which the distance is computed relative to
-
Constructor Details
-
AssociateImageDistanceEuclideanSq
public AssociateImageDistanceEuclideanSq()
-
-
Method Details
-
setSource
Description copied from interface:AssociateImageDistanceFunction
The source point which the distance is computed relative to- Specified by:
setSource
in interfaceAssociateImageDistanceFunction
- Parameters:
index
- Index in the source listpixel
- pixel value
-
distance
Description copied from interface:AssociateImageDistanceFunction
Distance from the source- Specified by:
distance
in interfaceAssociateImageDistanceFunction
- Parameters:
index
- Index in dst listpixel
- pixel value
-
copyConcurrent
Description copied from interface:AssociateImageDistanceFunction
Copy for concurrency. All functions must be thread safe- Specified by:
copyConcurrent
in interfaceAssociateImageDistanceFunction
-
convertPixelsToDistance
public double convertPixelsToDistance(double pixels) Description copied from interface:AssociateImageDistanceFunction
Converts a distance specified in pixels into the output distanec measure- Specified by:
convertPixelsToDistance
in interfaceAssociateImageDistanceFunction
-