<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to compare two images? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851514#M336567</link>
    <description>Maybe you should resort to Jmp or SAS Viya ?&lt;BR /&gt;Post your question at Jmp forum ,maybe you could get answer .&lt;BR /&gt;&lt;A href="https://community.jmp.com/" target="_blank"&gt;https://community.jmp.com/&lt;/A&gt;</description>
    <pubDate>Thu, 29 Dec 2022 12:00:59 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-12-29T12:00:59Z</dc:date>
    <item>
      <title>How to compare two images?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851511#M336564</link>
      <description>&lt;P&gt;Hi, Do you know if in a future SAS release, it will be possible to list differences between two images.&lt;/P&gt;
&lt;P&gt;In clinical trial, it is common to receive several versions of the deliverables, including graphs. Therefore, it would be useful to be able to review changes.&lt;/P&gt;
&lt;P&gt;Here is a paper on some R packages on comparing images (pages 6 and 7): &lt;A href="https://www.lexjansen.com/pharmasug/2022/AD/PharmaSUG-2022-AD-076.pdf" target="_blank" rel="noopener"&gt;https://www.lexjansen.com/pharmasug/2022/AD/PharmaSUG-2022-AD-076.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 11:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851511#M336564</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-12-29T11:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two images?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851512#M336565</link>
      <description>&lt;P&gt;It's of course much (MUCH!) easier to PROC COMPARE the data behind the images ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... but here is a possibility :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Visual Data Mining and Machine Learning Programming Guide&lt;BR /&gt;Image Action Set&lt;BR /&gt;The compareImages Action&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_031/casactml/casactml_image_examples43.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_031/casactml/casactml_image_examples43.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Dec 2022 11:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851512#M336565</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-12-29T11:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two images?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851514#M336567</link>
      <description>Maybe you should resort to Jmp or SAS Viya ?&lt;BR /&gt;Post your question at Jmp forum ,maybe you could get answer .&lt;BR /&gt;&lt;A href="https://community.jmp.com/" target="_blank"&gt;https://community.jmp.com/&lt;/A&gt;</description>
      <pubDate>Thu, 29 Dec 2022 12:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851514#M336567</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-29T12:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two images?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851540#M336582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't tell how your pictures are stored. If they are stored as files, you could generate a checksum for each file and compare the checksums. I don't know for sure if a sha256 checksum is truly unique, but I suppose it would be sufficient in this case. I haven't used it on pictures, only program code, ODBCINI files and similar, where is does a goos job, but as the checksum algorith isn't linked to certain file types, it should work on pictures as well. I tested it with a jpg-file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the following small macro on a Linux system, and I think there must be something similar available on Windows. The macro should be self-explaining, but I will be happy to explain further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/***************************************************************************/
/* getchecksum                                             erlu 2021-01-16 */
/*                                                                         */
/* creates sha256-checksum for files.                                      */
/* Makroen takes an input dataset with file names and creates an           */
/* output dataset from input with added column checksum                    */
/* Arguments:                                                              */
/*    dsin         Input dataset with file names.                          */
/*    pathcol      Name of input column containing file name (full path).  */
/*    dsout        Name to be assigned to output dataset.                  */
/***************************************************************************/

%macro getchecksum(dsin,pathcol,dsout);
	data &amp;amp;dsout;
		set &amp;amp;dsin (keep=path);
		length checksum $128;
		pipecmd ='sha256sum "' || trim(path) || '"';
		infile dummy pipe filevar = pipecmd;
		input;
		checksum = scan(_infile_,1,' ');
	run;
%mend;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If your pictures are stored as variables i a SAS dataset, which I think is unlikely because of the 32k limit, you can use the sha256 SAS function instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851540#M336582</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2022-12-29T18:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two images?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851543#M336584</link>
      <description>&lt;P&gt;Following up on the post by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12887"&gt;@ErikLund_Jensen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;, find here a bit more info on calculating checksums with SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checksums and data integrity in SAS programs &lt;BR /&gt;By Rick Wicklin on The DO Loop October 5, 2022&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2022/10/05/checksums-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2022/10/05/checksums-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-images/m-p/851543#M336584</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-12-29T18:55:26Z</dc:date>
    </item>
  </channel>
</rss>

