Re: feature request: get available image comparison metrics
Steve Ward <[email protected]> Thu, 4 Jul 2013 16:16:30 -0400
| Newsgroups | gmane.comp.video.graphicsmagick.tools |
|---|---|
| Message-ID | <CA+XvV5HqLFeFsSTOxXbwUfqWhtszHSxjEQC15cvoCPkhBKpf3w@mail.gmail.com> |
On Mon, Jul 1, 2013 at 10:06 AM, Bob Friesenhahn <[email protected]> wrote: > 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/ I created <https://sourceforge.net/p/graphicsmagick/feature-requests/33/>. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev