Show / Hide Table of Contents

Class MarrHildrethHash

Marr-Hildreth Operator Based Hash, slowest but more discriminative.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
ImgHashBase
MarrHildrethHash
Implements
ICvPtrHolder
Inherited Members
ImgHashBase.Compare(InputArray, InputArray)
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.ImgHash
Assembly: OpenCvSharp.dll
Syntax
public class MarrHildrethHash : ImgHashBase, ICvPtrHolder

Constructors

| Improve this Doc View Source

MarrHildrethHash(IntPtr)

Declaration
protected MarrHildrethHash(IntPtr p)
Parameters
Type Name Description
IntPtr p

Properties

| Improve this Doc View Source

Alpha

int scale factor for marr wavelet (default=2).

Declaration
public float Alpha { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

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 Source

Compute(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
ImgHashBase.Compute(InputArray, OutputArray)
| Improve this Doc View Source

Create(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
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
| Improve this Doc View Source

SetKernelParam(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)

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX