Img_hash
Objective-C
@interface Img_hash : NSObject
Swift
class Img_hash : NSObject
The Img_hash module
Member classes: AverageHash, ColorMomentHash, RadialVarianceHash, PHash, ImgHashBase, MarrHildrethHash, BlockMeanHash
Member enums: BlockMeanHashMode
-
Calculates img_hash::AverageHash in one call
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
outputArrHash value of input, it will contain 16 hex decimal number, return type is CV_8U
-
Computes block mean hash of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
outputArrHash value of input, it will contain 16 hex decimal number, return type is CV_8U
modethe mode
-
Computes block mean hash of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
outputArrHash value of input, it will contain 16 hex decimal number, return type is CV_8U
-
Computes color moment hash of the input, the algorithm is come from the paper “Perceptual Hashing for Color Images Using Invariant Moments”
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
outputArr42 hash values with type CV_64F(double)
-
Computes average hash value of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input, it will contain 16 hex decimal number, return type is CV_8U
alphaint scale factor for marr wavelet (default=2).
scaleint level of scale factor (default = 1)
-
Computes average hash value of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input, it will contain 16 hex decimal number, return type is CV_8U
alphaint scale factor for marr wavelet (default=2).
-
Computes average hash value of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input, it will contain 16 hex decimal number, return type is CV_8U
-
Computes pHash value of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input, it will contain 8 uchar value
-
Computes radial variance hash of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input
sigmaGaussian kernel standard deviation
numOfAngleLineThe number of angles to consider
-
Computes radial variance hash of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input
sigmaGaussian kernel standard deviation
-
Computes radial variance hash of the input image
Declaration
Parameters
inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrHash value of input
View on GitHub
Img_hash Class Reference