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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleconvertPixelsToDistance(double pixels) Converts a distance specified in pixels into the output distanec measureCopy for concurrency.doubledistance(int index, Point2D_F64 pixel) Distance from the sourcevoidsetSource(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:AssociateImageDistanceFunctionThe source point which the distance is computed relative to- Specified by:
setSourcein interfaceAssociateImageDistanceFunction- Parameters:
index- Index in the source listpixel- pixel value
-
distance
Description copied from interface:AssociateImageDistanceFunctionDistance from the source- Specified by:
distancein interfaceAssociateImageDistanceFunction- Parameters:
index- Index in dst listpixel- pixel value
-
copyConcurrent
Description copied from interface:AssociateImageDistanceFunctionCopy for concurrency. All functions must be thread safe- Specified by:
copyConcurrentin interfaceAssociateImageDistanceFunction
-
convertPixelsToDistance
public double convertPixelsToDistance(double pixels) Description copied from interface:AssociateImageDistanceFunctionConverts a distance specified in pixels into the output distanec measure- Specified by:
convertPixelsToDistancein interfaceAssociateImageDistanceFunction
-