C# Class ImageMagick.PerceptualHash

Contains the he perceptual hash of one or more image channels.
Show file Open project: dlemstra/Magick.NET Class Usage Examples

Private Properties

Property Type Description
AddChannel void
CreateChannelPerceptualHash ChannelPerceptualHash
DisposeList void
PerceptualHash System
PerceptualHash System

Public Methods

Method Description
GetChannel ( PixelChannel channel ) : ChannelPerceptualHash

Returns the perceptual hash for the specified channel.

PerceptualHash ( string perceptualHash ) : System

Initializes a new instance of the PerceptualHash class.

SumSquaredDistance ( PerceptualHash other ) : double

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

ToString ( ) : string

Returns a string representation of this hash.

Private Methods

Method Description
AddChannel ( MagickImage image, IntPtr list, PixelChannel channel ) : void
CreateChannelPerceptualHash ( MagickImage image, IntPtr list, PixelChannel channel ) : ChannelPerceptualHash
DisposeList ( IntPtr list ) : void
PerceptualHash ( ) : System
PerceptualHash ( MagickImage image, IntPtr list ) : System

Method Details

GetChannel() public method

Returns the perceptual hash for the specified channel.
public GetChannel ( PixelChannel channel ) : ChannelPerceptualHash
channel PixelChannel The channel to get the has for.
return ChannelPerceptualHash

PerceptualHash() public method

Initializes a new instance of the PerceptualHash class.
public PerceptualHash ( string perceptualHash ) : System
perceptualHash string The
return System

SumSquaredDistance() public method

Returns the sum squared difference between this hash and the other hash.
public SumSquaredDistance ( PerceptualHash other ) : double
other PerceptualHash The to get the distance of.
return double

ToString() public method

Returns a string representation of this hash.
public ToString ( ) : string
return string