java.lang.Object
org.opencv.core.Algorithm
org.opencv.img_hash.ImgHashBase
- Direct Known Subclasses:
AverageHash,BlockMeanHash,ColorMomentHash,MarrHildrethHash,PHash,RadialVarianceHash
The base class for image hash algorithms
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImgHashBase__fromPtr__(long addr) doubleCompare the hash value between inOne and inTwovoidComputes hash of the input imageMethods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
ImgHashBase
protected ImgHashBase(long addr)
-
-
Method Details
-
__fromPtr__
-
compute
Computes hash of the input image- Parameters:
inputArr- input image want to compute hash valueoutputArr- hash of the image
-
compare
Compare the hash value between inOne and inTwo- Parameters:
hashOne- Hash value onehashTwo- Hash value two- Returns:
- value indicate similarity between inOne and inTwo, the meaning of the value vary from algorithms to algorithms
-