Class ImgHashBase
The Image Hash base class
public abstract class ImgHashBase : UnmanagedObject, IDisposable
- Inheritance
-
ImgHashBase
- Implements
- Derived
- Inherited Members
Constructors
ImgHashBase()
protected ImgHashBase()
Fields
_imgHashBase
The pointer to the ImgHashBase object
protected nint _imgHashBase
Field Value
Properties
ImgHashBasePtr
Get the pointer to the ImgHashBase object
public nint ImgHashBasePtr { get; }
Property Value
- nint
The pointer to the ImgHashBase object
Methods
Compare(IInputArray, IInputArray)
Compare the hash value between inOne and inTwo
public double Compare(IInputArray hashOne, IInputArray hashTwo)
Parameters
hashOne
IInputArrayHash value one
hashTwo
IInputArrayHash value two
Returns
- double
indicate similarity between inOne and inTwo, the meaning of the value vary from algorithms to algorithms
Compute(IInputArray, IOutputArray)
Computes hash of the input image
public void Compute(IInputArray inputArr, IOutputArray outputArr)
Parameters
inputArr
IInputArrayinput image to compute hash value
outputArr
IOutputArrayhash of the image
DisposeObject()
Reset the pointers
protected override void DisposeObject()