Package boofcv.alg.similar
Class ImageSimilarityAssociatedRatio
java.lang.Object
boofcv.alg.similar.ImageSimilarityAssociatedRatio
- All Implemented Interfaces:
SimilarImagesSceneRecognition.SimilarityTest
public class ImageSimilarityAssociatedRatio
extends Object
implements SimilarImagesSceneRecognition.SimilarityTest
Very simple similarity test that looks at the ratio of total features in each image to the number of matched
features. This assumes the chosen association approach will prune miss matched features and not just assign
associations no mater what.
-
Field Summary
Modifier and TypeFieldDescriptionfinal ConfigLength
Fraction of features in a single image which must be associated for them to be considered similar -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isSimilar
(FastAccess<Point2D_F64> srcPixels, FastAccess<Point2D_F64> dstPixels, FastAccess<AssociatedIndex> matches)
-
Field Details
-
minimum
Fraction of features in a single image which must be associated for them to be considered similar
-
-
Constructor Details
-
ImageSimilarityAssociatedRatio
-
ImageSimilarityAssociatedRatio
public ImageSimilarityAssociatedRatio()
-
-
Method Details
-
isSimilar
public boolean isSimilar(FastAccess<Point2D_F64> srcPixels, FastAccess<Point2D_F64> dstPixels, FastAccess<AssociatedIndex> matches) - Specified by:
isSimilar
in interfaceSimilarImagesSceneRecognition.SimilarityTest
-