Class ChannelPerceptualHash
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Contains the perceptual hash of one image channel.
public class ChannelPerceptualHash : IChannelPerceptualHash
- Inheritance
-
ChannelPerceptualHash
- Implements
-
IChannelPerceptualHash
- Inherited Members
Constructors
ChannelPerceptualHash(PixelChannel, double[], double[], string)
Initializes a new instance of the ChannelPerceptualHash class.
[Obsolete("Will be removed in the next major release.")]
public ChannelPerceptualHash(PixelChannel channel, double[] srgbHuPhash, double[] hclpHuPhash, string hash)
Parameters
channel
PixelChannelThe channel.
srgbHuPhash
double[]SRGB hu perceptual hash.
hclpHuPhash
double[]Hclp hu perceptual hash.
hash
stringA string representation of this hash.
Properties
Channel
Gets the channel.
public PixelChannel Channel { get; }
Property Value
- PixelChannel
Methods
HclpHuPhash(int)
Hclp hu perceptual hash.
[Obsolete("Will be removed in the next major releas, use HuPhash(ColorSpace.HCLp, index) instead.")]
public double HclpHuPhash(int index)
Parameters
index
intThe index to use.
Returns
- double
The Hclp hu perceptual hash.
HuPhash(ColorSpace, int)
Returns the hu perceptual hash for the specified colorspace.
public double HuPhash(ColorSpace colorSpace, int index)
Parameters
colorSpace
ColorSpaceThe colorspace to use.
index
intThe index to use.
Returns
- double
The hu perceptual hash for the specified colorspace.
SrgbHuPhash(int)
SRGB hu perceptual hash.
[Obsolete("Will be removed in the next major release, use HuPhash(ColorSpace.sRGB, index) instead.")]
public double SrgbHuPhash(int index)
Parameters
index
intThe index to use.
Returns
- double
The SRGB hu perceptual hash.
SumSquaredDistance(IChannelPerceptualHash)
Returns the sum squared difference between this hash and the other hash.
public double SumSquaredDistance(IChannelPerceptualHash other)
Parameters
other
IChannelPerceptualHashThe ChannelPerceptualHash 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()
Returns
- string
A string representation of this hash.