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
The base class for image hash algorithms
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImgHashBase
__fromPtr__
(long addr) double
Compare the hash value between inOne and inTwovoid
Computes hash of the input imageprotected void
finalize()
Methods 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
-
finalize
-