<?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 understanding image data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/understanding-image-data/m-p/370761#M88548</link>
    <description>&lt;P&gt;Need help in understanding how the data is transcribed here from image to numbers. Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Need help in understanding how the data is transcribed here from image to numbers. Here is the code:

filename decomp "C:\Users\Richard Boire\Desktop\train-images.idx3-ubyte";
data train_images;

   infile decomp recfm=n;
*input var $256.;
   input var PIB1.;
   run;
   proc print data=train_images(obs=10);run;

Here is the output(printed off 1st 10 records)

  			                        Obs    var

                                                  1      0
                                                  2      0
                                                  3      8
                                                  4      3
                                                  5      0
                                                  6      0
                                                  7    234
                                                  8     96
                                                  9      0
                                                 10      0

&lt;/CODE&gt;&lt;/PRE&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>Mon, 26 Jun 2017 21:25:15 GMT</pubDate>
    <dc:creator>rboire</dc:creator>
    <dc:date>2017-06-26T21:25:15Z</dc:date>
    <item>
      <title>understanding image data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-image-data/m-p/370761#M88548</link>
      <description>&lt;P&gt;Need help in understanding how the data is transcribed here from image to numbers. Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Need help in understanding how the data is transcribed here from image to numbers. Here is the code:

filename decomp "C:\Users\Richard Boire\Desktop\train-images.idx3-ubyte";
data train_images;

   infile decomp recfm=n;
*input var $256.;
   input var PIB1.;
   run;
   proc print data=train_images(obs=10);run;

Here is the output(printed off 1st 10 records)

  			                        Obs    var

                                                  1      0
                                                  2      0
                                                  3      8
                                                  4      3
                                                  5      0
                                                  6      0
                                                  7    234
                                                  8     96
                                                  9      0
                                                 10      0

&lt;/CODE&gt;&lt;/PRE&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>Mon, 26 Jun 2017 21:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-image-data/m-p/370761#M88548</guid>
      <dc:creator>rboire</dc:creator>
      <dc:date>2017-06-26T21:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: understanding image data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-image-data/m-p/370782#M88552</link>
      <description>&lt;P&gt;These are the decimal values of each byte of the file you are reading.&lt;/P&gt;
&lt;P&gt;This:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "%sysfunc(pathname(work))\t.txt";
  put 'A' '09'x;
run;
data _null_;
  infile "%sysfunc(pathname(work))\t.txt" recfm=n;
  input X pib1.  ;
  putlog X= ;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;yields this (under Windows):&lt;/P&gt;
&lt;P&gt;X=65&lt;BR /&gt;X=9&lt;BR /&gt;X=13&lt;BR /&gt;X=10&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 00:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-image-data/m-p/370782#M88552</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-27T00:59:46Z</dc:date>
    </item>
  </channel>
</rss>

