Show / Hide Table of Contents

Class ImgHashBase

The base class for image hash algorithms

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

Methods

| Improve this Doc View Source

Compare(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

| Improve this Doc View Source

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

Implements

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