Class ColorMomentHash
Image hash based on color moments.
Implements
Inherited Members
Namespace: OpenCvSharp.ImgHash
Assembly: OpenCvSharp.dll
Syntax
public class ColorMomentHash : ImgHashBase, ICvPtrHolder
Constructors
| Improve this Doc View SourceColorMomentHash(IntPtr)
Declaration
protected ColorMomentHash(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCompute(InputArray, OutputArray)
Computes color moment hash of the input, the algorithm is come from the paper "Perceptual Hashing for Color Images Using Invariant Moments"
Declaration
public override void Compute(InputArray inputArr, OutputArray outputArr)
Parameters
Type | Name | Description |
---|---|---|
InputArray | inputArr | input image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1. |
OutputArray | outputArr | 42 hash values with type CV_64F(double) |
Overrides
| Improve this Doc View SourceCreate()
Constructor
Declaration
public static ColorMomentHash Create()
Returns
Type | Description |
---|---|
ColorMomentHash |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()