ImageMagick.ChannelPerceptualHash.SrgbHuPhash C# (CSharp) Method

SrgbHuPhash() public method

SRGB hu perceptual hash.
public SrgbHuPhash ( int index ) : double
index int The index to use.
return double
    public double SrgbHuPhash(int index)
    {
      Throw.IfOutOfRange(nameof(index), index, 7);

      return _SrgbHuPhash[index];
    }

Usage Example

 private void TestChannel(ChannelPerceptualHash channel, int index, double srgbHuPhash, double hclpHuPhash)
 {
   Assert.AreEqual(srgbHuPhash, channel.SrgbHuPhash(index), 0.0001);
   Assert.AreEqual(hclpHuPhash, channel.HclpHuPhash(index), 0.0001);
 }
All Usage Examples Of ImageMagick.ChannelPerceptualHash::SrgbHuPhash