SrgbHuPhash() public method

SRGB hu perceptual hash.
public SrgbHuPhash ( int index ) : double
index int The index to use.
return double
Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private void TestChannel(ChannelPerceptualHash channel, int index, double srgbHuPhashWithOpenCL, double srgbHuPhashWithoutOpenCL, double hclpHuPhashWithOpenCL, double hclpHuPhashWithoutOpenCL)
 {
   OpenCLValue.Assert(srgbHuPhashWithOpenCL, srgbHuPhashWithoutOpenCL, channel.SrgbHuPhash(index), 0.0001);
   OpenCLValue.Assert(hclpHuPhashWithOpenCL, hclpHuPhashWithoutOpenCL, channel.HclpHuPhash(index), 0.0001);
 }