Table of Contents

Class ChannelPerceptualHash

Namespace
ImageMagick
Assembly
Magick.NET-Q8-AnyCPU.dll

Contains the perceptual hash of one image channel.

public class ChannelPerceptualHash : IChannelPerceptualHash
Inheritance
ChannelPerceptualHash
Implements
IChannelPerceptualHash
Inherited Members

Properties

Channel

Gets the channel.

public PixelChannel Channel { get; }

Property Value

PixelChannel

Methods

HuPhash(ColorSpace, int)

Returns the hu perceptual hash for the specified colorspace.

public double HuPhash(ColorSpace colorSpace, int index)

Parameters

colorSpace ColorSpace

The colorspace to use.

index int

The index to use.

Returns

double

The hu perceptual hash for the specified colorspace.

SumSquaredDistance(IChannelPerceptualHash)

Returns the sum squared difference between this hash and the other hash.

public double SumSquaredDistance(IChannelPerceptualHash other)

Parameters

other IChannelPerceptualHash

The 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.