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); }
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); }