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
Implements
Inherited Members
Namespace: OpenCvSharp.ImgHash
Assembly: OpenCvSharp.dll
Syntax
public class PHash : ImgHashBase, ICvPtrHolder
Constructors
| Improve this Doc View SourcePHash(IntPtr)
Declaration
protected PHash(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCompute(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
| Improve this Doc View SourceCreate()
Constructor
Declaration
public static PHash Create()
Returns
Type | Description |
---|---|
PHash |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()