From: Andrew K. <ak...@fl...> - 2015-09-16 16:32:35
|
As far as I know, JMagick doesn't have any hooks for image comparison, although could certainly be added. On Tue, Sep 15, 2015 at 3:58 PM, Maksym Vorchukov <fa...@ma...> wrote: > Hello, Dear Colleagues. > > Could you please help me to implement image comparison with metric PSNR > using JMagick. > > The command is: > > convert image1.jpg -resize WidthxHeight image2.jpg -metric PSNR -format "%[distortion]" -compare info: > > dlemstra <http://stackoverflow.com/users/2410453/dlemstra>, the author of > the Magick.NET API, helped with Magick.NET part. > > Here is the code (maybe will be helpfull): > > using (MagickImage image1 = new MagickImage("image1.jpg")) > { > using (MagickImage image2 = new MagickImage("image2.jpg")) > { > double distortion = image1.Compare(image2, ErrorMetric.PeakSignalToNoiseRatio); > } > } > > Could you help with JMagick part? > > Thanks for your help. > > P.S. Thread on stackoverflow: > > http://stackoverflow.com/questions/31185365/compare-images-with-metric-psnr-in-imagemagick-using-java-api-jmagick-or-c-sha > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jmagick-users mailing list > Jma...@li... > https://lists.sourceforge.net/lists/listinfo/jmagick-users > > -- Andrew Kerr |