OpenCV for Unity  2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Static Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.Img_hashModule.Img_hash Class Reference

Static Public Member Functions

static void averageHash (Mat inputArr, Mat outputArr)
 Calculates img_hash::AverageHash in one call. More...
 
static void blockMeanHash (Mat inputArr, Mat outputArr, int mode)
 Computes block mean hash of the input image. More...
 
static void blockMeanHash (Mat inputArr, Mat outputArr)
 Computes block mean hash of the input image. More...
 
static void colorMomentHash (Mat inputArr, Mat outputArr)
 Computes color moment hash of the input, the algorithm is come from the paper "Perceptual Hashing for Color Images Using Invariant Moments". More...
 
static void marrHildrethHash (Mat inputArr, Mat outputArr, float alpha, float scale)
 Computes average hash value of the input image. More...
 
static void marrHildrethHash (Mat inputArr, Mat outputArr, float alpha)
 Computes average hash value of the input image. More...
 
static void marrHildrethHash (Mat inputArr, Mat outputArr)
 Computes average hash value of the input image. More...
 
static void pHash (Mat inputArr, Mat outputArr)
 Computes pHash value of the input image. More...
 
static void radialVarianceHash (Mat inputArr, Mat outputArr, double sigma, int numOfAngleLine)
 Computes radial variance hash of the input image. More...
 
static void radialVarianceHash (Mat inputArr, Mat outputArr, double sigma)
 Computes radial variance hash of the input image. More...
 
static void radialVarianceHash (Mat inputArr, Mat outputArr)
 Computes radial variance hash of the input image. More...
 

Public Attributes

const int BLOCK_MEAN_HASH_MODE_0 = 0
 
const int BLOCK_MEAN_HASH_MODE_1 = 1
 

Member Function Documentation

◆ averageHash()

static void OpenCVForUnity.Img_hashModule.Img_hash.averageHash ( Mat  inputArr,
Mat  outputArr 
)
static

Calculates img_hash::AverageHash in one call.

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

◆ blockMeanHash() [1/2]

static void OpenCVForUnity.Img_hashModule.Img_hash.blockMeanHash ( Mat  inputArr,
Mat  outputArr,
int  mode 
)
static

Computes block mean hash of the input image.

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

◆ blockMeanHash() [2/2]

static void OpenCVForUnity.Img_hashModule.Img_hash.blockMeanHash ( Mat  inputArr,
Mat  outputArr 
)
static

Computes block mean hash of the input image.

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

◆ colorMomentHash()

static void OpenCVForUnity.Img_hashModule.Img_hash.colorMomentHash ( Mat  inputArr,
Mat  outputArr 
)
static

Computes color moment hash of the input, the algorithm is come from the paper "Perceptual Hashing for Color Images Using Invariant Moments".

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)

◆ marrHildrethHash() [1/3]

static void OpenCVForUnity.Img_hashModule.Img_hash.marrHildrethHash ( Mat  inputArr,
Mat  outputArr,
float  alpha,
float  scale 
)
static

Computes average hash value of the input image.

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)

◆ marrHildrethHash() [2/3]

static void OpenCVForUnity.Img_hashModule.Img_hash.marrHildrethHash ( Mat  inputArr,
Mat  outputArr,
float  alpha 
)
static

Computes average hash value of the input image.

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)

◆ marrHildrethHash() [3/3]

static void OpenCVForUnity.Img_hashModule.Img_hash.marrHildrethHash ( Mat  inputArr,
Mat  outputArr 
)
static

Computes average hash value of the input image.

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)

◆ pHash()

static void OpenCVForUnity.Img_hashModule.Img_hash.pHash ( Mat  inputArr,
Mat  outputArr 
)
static

Computes pHash value of the input image.

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

◆ radialVarianceHash() [1/3]

static void OpenCVForUnity.Img_hashModule.Img_hash.radialVarianceHash ( Mat  inputArr,
Mat  outputArr,
double  sigma,
int  numOfAngleLine 
)
static

Computes radial variance hash of the input image.

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

◆ radialVarianceHash() [2/3]

static void OpenCVForUnity.Img_hashModule.Img_hash.radialVarianceHash ( Mat  inputArr,
Mat  outputArr,
double  sigma 
)
static

Computes radial variance hash of the input image.

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

◆ radialVarianceHash() [3/3]

static void OpenCVForUnity.Img_hashModule.Img_hash.radialVarianceHash ( Mat  inputArr,
Mat  outputArr 
)
static

Computes radial variance hash of the input image.

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

Member Data Documentation

◆ BLOCK_MEAN_HASH_MODE_0

const int OpenCVForUnity.Img_hashModule.Img_hash.BLOCK_MEAN_HASH_MODE_0 = 0

◆ BLOCK_MEAN_HASH_MODE_1

const int OpenCVForUnity.Img_hashModule.Img_hash.BLOCK_MEAN_HASH_MODE_1 = 1

The documentation for this class was generated from the following file: