Class PerceptualHash
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Contains the perceptual hash of one or more image channels.
public sealed class PerceptualHash : IPerceptualHash
- Inheritance
-
PerceptualHash
- Implements
-
IPerceptualHash
- Inherited Members
Constructors
PerceptualHash(string)
Initializes a new instance of the PerceptualHash class.
public PerceptualHash(string hash)
Parameters
hash
stringThe hash.
PerceptualHash(string, params ColorSpace[])
Initializes a new instance of the PerceptualHash class.
public PerceptualHash(string hash, params ColorSpace[] colorSpaces)
Parameters
hash
stringThe hash.
colorSpaces
ColorSpace[]The colorspaces that were used to create this hash.
Methods
GetChannel(PixelChannel?)
Returns the perceptual hash for the specified channel.
public IChannelPerceptualHash? GetChannel(PixelChannel? channel)
Parameters
channel
PixelChannelThe channel to get the has for.
Returns
- IChannelPerceptualHash
The perceptual hash for the specified channel.
SumSquaredDistance(IPerceptualHash)
Returns the sum squared difference between this hash and the other hash.
public double SumSquaredDistance(IPerceptualHash other)
Parameters
other
IPerceptualHashThe PerceptualHash to get the distance of.
Returns
- double
The sum squared difference between this hash and the other hash.
ToString()
Returns a string representation of this hash.
public override string ToString()