I need to compare selected parts of few images to check if they match.
In console version I use
Code: Select all
convert img1 img2 -metric NCC -compare -format "%[distortion]" info:
I was trying to implement the same approach using MagickWand API with FreePascal and I failed because of the following:
the NCC (normalized cross correlation) metric is not implemented
Simply in console mode the list is the following:
Code: Select all
C:\>convert -list metric
AE
Fuzz
MAE
MEPP
MSE
NCC
PAE
PHASH
PSNR
RMSE
Code: Select all
i=0 -> UndefinedMetric
i=1 -> MeanAbsoluteErrorMetric
i=2 -> MeanSquaredErrorMetric
i=3 -> PeakAbsoluteErrorMetric
i=4 -> PeakSignalToNoiseRatioMetric
i=5 -> RootMeanSquaredErrorMetric
Was it done on purpose or is it just a bug?
Regards
Wojtek