<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to compare.run not working correctly. It is creating the files to be compared again instead of creating diff file </title><link>https://sourceforge.net/p/im4java/discussion/910877/thread/f19c753d/</link><description>Recent posts to compare.run not working correctly. It is creating the files to be compared again instead of creating diff file </description><atom:link href="https://sourceforge.net/p/im4java/discussion/910877/thread/f19c753d/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 18 Jul 2018 12:51:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/im4java/discussion/910877/thread/f19c753d/feed.rss" rel="self" type="application/rss+xml"/><item><title>compare.run not working correctly. It is creating the files to be compared again instead of creating diff file </title><link>https://sourceforge.net/p/im4java/discussion/910877/thread/f19c753d/?limit=25#6cce</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;public static boolean compareImages(String actualImage,&lt;br/&gt;
            String expectedImage, String diffImage) {&lt;br/&gt;
            CompareCmd compare = new CompareCmd();&lt;br/&gt;
            compare.setSearchPath("/usr/local/bin/");&lt;br/&gt;
            ArrayListErrorConsumer errorConsumer = new ArrayListErrorConsumer();&lt;br/&gt;
            compare.setErrorConsumer(errorConsumer); // for metric-output&lt;br/&gt;
            IMOperation cmpOp = new IMOperation();&lt;br/&gt;
            cmpOp.addImage("/Users/moagarwa/Desktop/delete/test/IMG_2188.JPEG");&lt;br/&gt;
            cmpOp.addImage("/Users/moagarwa/Desktop/delete/test/IMG_2193.JPEG");&lt;br/&gt;
//          cmpOp.fuzz(5.0);&lt;br/&gt;
            cmpOp.metric("ae"); // root mean squared (normalized root mean&lt;br/&gt;
            // squared)&lt;br/&gt;
            cmpOp.addImage("/Users/moagarwa/Desktop/delete/DIFF.JPEG");&lt;br/&gt;
            try {&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;            compare.run(cmpOp);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        return errorConsumer.getOutput().contains("0 (0)");

        Please help. We are doing mobile automation and we want to use it for image comparison.
        We are completely blocked
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohit Agarwal</dc:creator><pubDate>Wed, 18 Jul 2018 12:51:19 -0000</pubDate><guid>https://sourceforge.netaff9744d33456799acea6dbb338cf9aa8db346a7</guid></item></channel></rss>