Package org.opencv.img_hash
Class ImgHashBase
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.img_hash.ImgHashBase
 
 
- 
- Direct Known Subclasses:
- AverageHash,- BlockMeanHash,- ColorMomentHash,- MarrHildrethHash,- PHash,- RadialVarianceHash
 
 public class ImgHashBase extends Algorithm The base class for image hash algorithms
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedImgHashBase(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImgHashBase__fromPtr__(long addr)doublecompare(Mat hashOne, Mat hashTwo)Compare the hash value between inOne and inTwovoidcompute(Mat inputArr, Mat outputArr)Computes hash of the input imageprotected voidfinalize()- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static ImgHashBase __fromPtr__(long addr) 
 - 
comparepublic double compare(Mat hashOne, Mat hashTwo) Compare the hash value between inOne and inTwo- Parameters:
- hashOne- Hash value one
- hashTwo- Hash value two
- Returns:
- value indicate similarity between inOne and inTwo, the meaning of the value vary from algorithms to algorithms
 
 - 
computepublic void compute(Mat inputArr, Mat outputArr) Computes hash of the input image- Parameters:
- inputArr- input image want to compute hash value
- outputArr- hash of the image
 
 
- 
 
-