Re: feature request: get available image comparison metrics

Bob Friesenhahn <[email protected]> Mon, 1 Jul 2013 09:06:25 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.tools
Message-ID <[email protected]>
On Sun, 30 Jun 2013, Steve Ward wrote:

> I wish there was a way to programatically get the image comparison metrics.
>
> Example:
>
> $ compare -list metric

Please post your feature request to the SourceForge GraphicsMagick 
feature request tracker so it won't be forgotten.

ImageMagick is easily able to do this since it uses centralized 
parsing of all string enumeration arguments using a single function. 
Naturally, this resulted in changes to the C API.

GraphicsMagick does use centralized parsing but there is a pair of 
functions for each enumeration type.  There is also a -list option, 
but it is not currently used for enumerations.  With a bit of work, 
GraphicsMagick could emulate ImageMagick in this regard.

In the mean time, here is an automated way to see the set of options 
supported by GraphicsMagick:

% gm compare -help | grep metric
   -metric              comparison metric (MAE, MSE, PAE, PSNR, RMSE)

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev