Class ImgHashBase
The base class for image hash algorithms
Inheritance
System.Object
ImgHashBase
Implements
Inherited Members
Namespace: OpenCvSharp.ImgHash
Assembly: OpenCvSharp.dll
Syntax
public abstract class ImgHashBase : Algorithm, ICvPtrHolder
Methods
| Improve this Doc View SourceCompare(InputArray, InputArray)
Compare the hash value between inOne and inTwo
Declaration
public virtual double Compare(InputArray hashOne, InputArray hashTwo)
Parameters
Type | Name | Description |
---|---|---|
InputArray | hashOne | Hash value one |
InputArray | hashTwo | Hash value two |
Returns
Type | Description |
---|---|
System.Double | value indicate similarity between inOne and inTwo, the meaning of the value vary from algorithms to algorithms |
Compute(InputArray, OutputArray)
Computes hash of the input image
Declaration
public virtual void Compute(InputArray inputArr, OutputArray outputArr)
Parameters
Type | Name | Description |
---|---|---|
InputArray | inputArr | input image want to compute hash value |
OutputArray | outputArr | hash of the image |