Save down pHash string (or info) with Magick.NET
Posted: 2017-06-07T03:29:24-07:00
Hello!
Loving ImageMagick and Magick.NET
I want to compare a whole lot of images to see which ones are similar, using pHash. Naturally, the best way to do this is to calculate the pHash data once for each image - then use that data to do the comparison many times (for each combination of two images).
Magick.NET provides the "var res = firstImage.Compare(secondImage, ErrorMetric.PerceptualHash);" type interface.... but this isn't much good for me, as it is very slow to calculate the "firstImage" pHash for each comparison I want to do.
Something like this was talked about with relation to ImageMagick via scripting (see link here) - but not Magick.NET. I am wondering if there is a way to save down that pHash data in Magick.NET.
THANKS FOR THE HELP!
Loving ImageMagick and Magick.NET
I want to compare a whole lot of images to see which ones are similar, using pHash. Naturally, the best way to do this is to calculate the pHash data once for each image - then use that data to do the comparison many times (for each combination of two images).
Magick.NET provides the "var res = firstImage.Compare(secondImage, ErrorMetric.PerceptualHash);" type interface.... but this isn't much good for me, as it is very slow to calculate the "firstImage" pHash for each comparison I want to do.
Something like this was talked about with relation to ImageMagick via scripting (see link here) - but not Magick.NET. I am wondering if there is a way to save down that pHash data in Magick.NET.
THANKS FOR THE HELP!