Show / Hide Table of Contents

Class PHash

pHash: Slower than average_hash, but tolerant of minor modifications. This algorithm can combat more variation than averageHash, for more details please refer to @cite lookslikeit

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
ImgHashBase
PHash
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 PHash : ImgHashBase, ICvPtrHolder

Constructors

| Improve this Doc View Source

PHash(IntPtr)

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

Methods

| Improve this Doc View Source

Compute(InputArray, OutputArray)

Computes pHash 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 8 uchar value

Overrides
ImgHashBase.Compute(InputArray, OutputArray)
| Improve this Doc View Source

Create()

Constructor

Declaration
public static PHash Create()
Returns
Type Description
PHash
| 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

Implements

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