MagickCompareImages: NCC metric not availabe
Posted: 2016-03-16T03:56:46-07:00
Hi,
I need to compare selected parts of few images to check if they match.
In console version I use
and if a distortion is close to 1 this means the images are similar.
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:
and if one checks the MetricType available using API the list is a bit shorter and NCC is missing :
Any idea how to overcome that issue?
Was it done on purpose or is it just a bug?
Regards
Wojtek
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