Class MarrHildrethHash
Marr-Hildreth Operator Based Hash, slowest but more discriminative.
Inheritance
System.Object
MarrHildrethHash
Implements
Inherited Members
Namespace: OpenCvSharp.ImgHash
Assembly: OpenCvSharp.dll
Syntax
public class MarrHildrethHash : ImgHashBase, ICvPtrHolder
Constructors
| Improve this Doc View SourceMarrHildrethHash(IntPtr)
Declaration
protected MarrHildrethHash(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Properties
| Improve this Doc View SourceAlpha
int scale factor for marr wavelet (default=2).
Declaration
public float Alpha { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Scale
int level of scale factor (default = 1)
Declaration
public float Scale { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceCompute(InputArray, OutputArray)
Computes average hash value of the input image
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, CV_8UC1. |
OutputArray | outputArr | Hash value of input, it will contain 16 hex decimal number, return type is CV_8U |
Overrides
| Improve this Doc View SourceCreate(Single, Single)
Create BlockMeanHash object
Declaration
public static MarrHildrethHash Create(float alpha = 2F, float scale = 1F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | alpha | int scale factor for marr wavelet (default=2). |
System.Single | scale | int level of scale factor (default = 1) |
Returns
Type | Description |
---|---|
MarrHildrethHash |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceSetKernelParam(Single, Single)
Declaration
public void SetKernelParam(float alpha = 2F, float scale = 1F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | alpha | int scale factor for marr wavelet (default=2). |
System.Single | scale | int level of scale factor (default = 1) |