<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708</link>
    <title>MATLAB Central Newsreader - reading gif</title>
    <description>Feed for thread: reading gif</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 07 May 2008 05:21:03 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430740</link>
      <author>Robert Johansson</author>
      <description>Peter Boettcher &amp;lt;boettcher@ll.mit.edu&amp;gt; wrote in message &lt;br&gt;
&amp;lt;muyr6cfgo6x.fsf@G99-Boettcher.llan.ll.mit.edu&amp;gt;...&lt;br&gt;
&amp;gt; "Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; writes:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Peter Boettcher &amp;lt;boettcher@ll.mit.edu&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;muyzlr3gsuu.fsf@G99-Boettcher.llan.ll.mit.edu&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; OK, that's a different issue.  Raster formats in EPS &lt;br&gt;
can&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; be... tricky.  What code are you using to generate the &lt;br&gt;
EPS file?  And&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; how are you comparing the output results to the GIF &lt;br&gt;
version?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; -Peter&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks, thats nice to know. I have tried many different &lt;br&gt;
&amp;gt; &amp;gt; approaces. The most promising is this one&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; function logo(storlek)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; [s map] = imread('UMU_pos.gif');&lt;br&gt;
&amp;gt; &amp;gt; image(s);&lt;br&gt;
&amp;gt; &amp;gt; colormap(map);&lt;br&gt;
&amp;gt; &amp;gt; set(gcf,'units','points','position',[0 0 storlek &lt;br&gt;
&amp;gt; &amp;gt; storlek],'color',[0 0 0])&lt;br&gt;
&amp;gt; &amp;gt; axes('units','points','position',[0 0 storlek &lt;br&gt;
&amp;gt; &amp;gt; storlek],'visible','off')&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; but it doesn't work properly. I realize that 20 mm is &lt;br&gt;
&amp;gt; &amp;gt; probably wrong size. I got it from the webbpage where I &lt;br&gt;
&amp;gt; &amp;gt; found the gif. I thouth it should be right if I ran my &lt;br&gt;
&amp;gt; &amp;gt; function with storlek=101 ... but its not right. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 'points' do not mean 'pixels'.  'points' are related to &lt;br&gt;
font sizes.  You&lt;br&gt;
&amp;gt; want pixels.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The 'axes' call creates a new axis.  Instead you want to&lt;br&gt;
&amp;gt; set(gca, 'units', 'pixels', [0 0 101 101]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; "axis off" is the right way to turn off the hash marks.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I also do not see any code that exports to an EPS.  &lt;br&gt;
Printing uses some&lt;br&gt;
&amp;gt; other values that you need to get &lt;br&gt;
right.  'PaperPosition', the -r value&lt;br&gt;
&amp;gt; in the print command to specify printing resolution, etc.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -Peter&lt;br&gt;
&lt;br&gt;
Thanks! I looks fine now. I saved to eps from the figure &lt;br&gt;
menu instead of printing directly from the m-file.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 20:44:42 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430665</link>
      <author>Steve Eddins</author>
      <description>Robert Johansson wrote:&lt;br&gt;
&amp;gt; Its a logotype. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href="http://www.umu.se/umu/profil/allmant/logotyp.html"&gt;http://www.umu.se/umu/profil/allmant/logotyp.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The one to the left is of size 101x101 but a matrix of &lt;br&gt;
&amp;gt; 101x101 is not enough to describe it. I guess that it has &lt;br&gt;
&amp;gt; something to do with to file format.&lt;br&gt;
&lt;br&gt;
If you have an image with 101 rows and 101 columns of pixels, then a &lt;br&gt;
101x101 matrix is just what you need to describe it exactly.  File &lt;br&gt;
format has nothing to do with it.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 20:41:42 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430664</link>
      <author>Peter Boettcher</author>
      <description>"Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Peter Boettcher &amp;lt;boettcher@ll.mit.edu&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;muyzlr3gsuu.fsf@G99-Boettcher.llan.ll.mit.edu&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; OK, that's a different issue.  Raster formats in EPS can&lt;br&gt;
&amp;gt;&amp;gt; be... tricky.  What code are you using to generate the EPS file?  And&lt;br&gt;
&amp;gt;&amp;gt; how are you comparing the output results to the GIF version?&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; -Peter&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks, thats nice to know. I have tried many different &lt;br&gt;
&amp;gt; approaces. The most promising is this one&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; function logo(storlek)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [s map] = imread('UMU_pos.gif');&lt;br&gt;
&amp;gt; image(s);&lt;br&gt;
&amp;gt; colormap(map);&lt;br&gt;
&amp;gt; set(gcf,'units','points','position',[0 0 storlek &lt;br&gt;
&amp;gt; storlek],'color',[0 0 0])&lt;br&gt;
&amp;gt; axes('units','points','position',[0 0 storlek &lt;br&gt;
&amp;gt; storlek],'visible','off')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but it doesn't work properly. I realize that 20 mm is &lt;br&gt;
&amp;gt; probably wrong size. I got it from the webbpage where I &lt;br&gt;
&amp;gt; found the gif. I thouth it should be right if I ran my &lt;br&gt;
&amp;gt; function with storlek=101 ... but its not right. &lt;br&gt;
&lt;br&gt;
'points' do not mean 'pixels'.  'points' are related to font sizes.  You&lt;br&gt;
want pixels.&lt;br&gt;
&lt;br&gt;
The 'axes' call creates a new axis.  Instead you want to&lt;br&gt;
set(gca, 'units', 'pixels', [0 0 101 101]);&lt;br&gt;
&lt;br&gt;
"axis off" is the right way to turn off the hash marks.&lt;br&gt;
&lt;br&gt;
I also do not see any code that exports to an EPS.  Printing uses some&lt;br&gt;
other values that you need to get right.  'PaperPosition', the -r value&lt;br&gt;
in the print command to specify printing resolution, etc.&lt;br&gt;
&lt;br&gt;
-Peter&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 19:56:03 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430654</link>
      <author>Robert Johansson</author>
      <description>Peter Boettcher &amp;lt;boettcher@ll.mit.edu&amp;gt; wrote in message &lt;br&gt;
&amp;lt;muyzlr3gsuu.fsf@G99-Boettcher.llan.ll.mit.edu&amp;gt;...&lt;br&gt;
&amp;gt; "Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; writes:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; What?  You really need to explain what you mean &lt;br&gt;
by "not enough to&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; describe it", or "not even close to what is needed to &lt;br&gt;
get a correct&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; version of".  Everything seems entirely consistent.  &lt;br&gt;
The image has&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; size 101x101 pixels.  It is displayed at exactly that &lt;br&gt;
size on the&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; web.  Windows "properties" says it is 101x101 pixels.  &lt;br&gt;
When you read&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; it into MATLAB you get a matrix of 101x101 pixels.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; And when I display the 101x101 matrix in MATLAB, it &lt;br&gt;
looks exactly&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; like the web.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Maybe the code you use to display the image is wrong?  &lt;br&gt;
Here's what I&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; did:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [s map] = imread('UMU_pos.gif');&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; image(s);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; colormap(map);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; truesize;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; -Peter&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I'm sorry if my explanation was poor. If I do the &lt;br&gt;
conversion to eps&lt;br&gt;
&amp;gt; &amp;gt; with my own code, or with your code, I get a new &lt;br&gt;
picture of poor&lt;br&gt;
&amp;gt; &amp;gt; quality. I scaled the eps with LaTeX to exactly the &lt;br&gt;
same size as the&lt;br&gt;
&amp;gt; &amp;gt; original (20mm) and put them side by side to be sure. &lt;br&gt;
There is no&lt;br&gt;
&amp;gt; &amp;gt; doubt that something has been lost or distorted. Maybe &lt;br&gt;
this is a&lt;br&gt;
&amp;gt; &amp;gt; problem with conversion from gif to eps that can't be &lt;br&gt;
avoided with&lt;br&gt;
&amp;gt; &amp;gt; this method? I was just surprised that I didnt get the &lt;br&gt;
same result&lt;br&gt;
&amp;gt; &amp;gt; when I read the gif-file and converted it with MATLAB.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; OK, that's a different issue.  Raster formats in EPS can &lt;br&gt;
be... tricky.&lt;br&gt;
&amp;gt; What code are you using to generate the EPS file?  And &lt;br&gt;
how are you&lt;br&gt;
&amp;gt; comparing the output results to the GIF version?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -Peter&lt;br&gt;
&lt;br&gt;
Thanks, thats nice to know. I have tried many different &lt;br&gt;
approaces. The most promising is this one&lt;br&gt;
&lt;br&gt;
function logo(storlek)&lt;br&gt;
&lt;br&gt;
[s map] = imread('UMU_pos.gif');&lt;br&gt;
image(s);&lt;br&gt;
colormap(map);&lt;br&gt;
set(gcf,'units','points','position',[0 0 storlek &lt;br&gt;
storlek],'color',[0 0 0])&lt;br&gt;
axes('units','points','position',[0 0 storlek &lt;br&gt;
storlek],'visible','off')&lt;br&gt;
&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
but it doesn't work properly. I realize that 20 mm is &lt;br&gt;
probably wrong size. I got it from the webbpage where I &lt;br&gt;
found the gif. I thouth it should be right if I ran my &lt;br&gt;
function with storlek=101 ... but its not right. &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 19:00:57 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430641</link>
      <author>Peter Boettcher</author>
      <description>"Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; What?  You really need to explain what you mean by "not enough to&lt;br&gt;
&amp;gt;&amp;gt; describe it", or "not even close to what is needed to get a correct&lt;br&gt;
&amp;gt;&amp;gt; version of".  Everything seems entirely consistent.  The image has&lt;br&gt;
&amp;gt;&amp;gt; size 101x101 pixels.  It is displayed at exactly that size on the&lt;br&gt;
&amp;gt;&amp;gt; web.  Windows "properties" says it is 101x101 pixels.  When you read&lt;br&gt;
&amp;gt;&amp;gt; it into MATLAB you get a matrix of 101x101 pixels.&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; And when I display the 101x101 matrix in MATLAB, it looks exactly&lt;br&gt;
&amp;gt;&amp;gt; like the web.&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Maybe the code you use to display the image is wrong?  Here's what I&lt;br&gt;
&amp;gt;&amp;gt; did:&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; [s map] = imread('UMU_pos.gif');&lt;br&gt;
&amp;gt;&amp;gt; image(s);&lt;br&gt;
&amp;gt;&amp;gt; colormap(map);&lt;br&gt;
&amp;gt;&amp;gt; truesize;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; -Peter&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I'm sorry if my explanation was poor. If I do the conversion to eps&lt;br&gt;
&amp;gt; with my own code, or with your code, I get a new picture of poor&lt;br&gt;
&amp;gt; quality. I scaled the eps with LaTeX to exactly the same size as the&lt;br&gt;
&amp;gt; original (20mm) and put them side by side to be sure. There is no&lt;br&gt;
&amp;gt; doubt that something has been lost or distorted. Maybe this is a&lt;br&gt;
&amp;gt; problem with conversion from gif to eps that can't be avoided with&lt;br&gt;
&amp;gt; this method? I was just surprised that I didnt get the same result&lt;br&gt;
&amp;gt; when I read the gif-file and converted it with MATLAB.&lt;br&gt;
&lt;br&gt;
OK, that's a different issue.  Raster formats in EPS can be... tricky.&lt;br&gt;
What code are you using to generate the EPS file?  And how are you&lt;br&gt;
comparing the output results to the GIF version?&lt;br&gt;
&lt;br&gt;
-Peter&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 18:50:20 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430639</link>
      <author>Robert Johansson</author>
      <description>Peter Boettcher &amp;lt;boettcher@ll.mit.edu&amp;gt; wrote in message &lt;br&gt;
&amp;lt;muy4p9bibud.fsf@G99-Boettcher.llan.ll.mit.edu&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [correcting top-post]&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; "Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; writes:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Steve Eddins &amp;lt;Steve.Eddins@mathworks.com&amp;gt; wrote in &lt;br&gt;
message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;fvpn6m$rt6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Robert Johansson wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; The matrix that I get from imread (and importdata) &lt;br&gt;
is of size&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; 87x87, that is not even close to what is needed to &lt;br&gt;
get a correct&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; version of the picture. I know what the picture &lt;br&gt;
should look&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; like. This is the file info:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;            FileSize: 3464&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;              Format: 'GIF'&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;       FormatVersion: '89a'&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;               Width: 87&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;              Height: 87&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;            BitDepth: 8&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;           ColorType: 'indexed'&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;     FormatSignature: 'GIF89a'&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;     BackgroundColor: 0&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;         AspectRatio: 0&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;          ColorTable: [256x3 double]&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;          Interlaced: 'no'&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; If I examine the file properties by right-clicking &lt;br&gt;
on it, the&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; system tells me that the size is given in "points" &lt;br&gt;
(87x87). Its a&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; picture of a logo which i want to use in LaTeX so my &lt;br&gt;
idea was to&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; convert it to eps with MATLAB.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Sounds to me like you have a GIF file containing 87 &lt;br&gt;
rows and 87&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; pixels, and this is what imread is giving you.  It &lt;br&gt;
also sounds to me&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; like the Windows file properties dialog is confirming &lt;br&gt;
this for you.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Try reading the image file using some other &lt;br&gt;
application if you still&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; have doubts.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Where is your notion of "correct version of the &lt;br&gt;
picture" coming from?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Its a logotype. &lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href="http://www.umu.se/umu/profil/allmant/logotyp.html"&gt;http://www.umu.se/umu/profil/allmant/logotyp.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The one to the left is of size 101x101 but a matrix of &lt;br&gt;
&amp;gt; &amp;gt; 101x101 is not enough to describe it. I guess that it &lt;br&gt;
has &lt;br&gt;
&amp;gt; &amp;gt; something to do with to file format.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What?  You really need to explain what you mean by "not &lt;br&gt;
enough to&lt;br&gt;
&amp;gt; describe it", or "not even close to what is needed to get &lt;br&gt;
a correct&lt;br&gt;
&amp;gt; version of".  Everything seems entirely consistent.  The &lt;br&gt;
image has size&lt;br&gt;
&amp;gt; 101x101 pixels.  It is displayed at exactly that size on &lt;br&gt;
the web.&lt;br&gt;
&amp;gt; Windows "properties" says it is 101x101 pixels.  When you &lt;br&gt;
read it into&lt;br&gt;
&amp;gt; MATLAB you get a matrix of 101x101 pixels.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; And when I display the 101x101 matrix in MATLAB, it looks &lt;br&gt;
exactly like&lt;br&gt;
&amp;gt; the web.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Maybe the code you use to display the image is wrong?  &lt;br&gt;
Here's what I&lt;br&gt;
&amp;gt; did:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [s map] = imread('UMU_pos.gif');&lt;br&gt;
&amp;gt; image(s);&lt;br&gt;
&amp;gt; colormap(map);&lt;br&gt;
&amp;gt; truesize;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -Peter&lt;br&gt;
&lt;br&gt;
I'm sorry if my explanation was poor. If I do the &lt;br&gt;
conversion to eps with my own code, or with your code, I &lt;br&gt;
get a new picture of poor quality. I scaled the eps with &lt;br&gt;
LaTeX to exactly the same size as the original (20mm) and &lt;br&gt;
put them side by side to be sure. There is no doubt that &lt;br&gt;
something has been lost or distorted. Maybe this is a &lt;br&gt;
problem with conversion from gif to eps that can't be &lt;br&gt;
avoided with this method? I was just surprised that I didnt &lt;br&gt;
get the same result when I read the gif-file and converted &lt;br&gt;
it with MATLAB.&lt;br&gt;
&lt;br&gt;
/Robert&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 17:25:30 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430622</link>
      <author>Peter Boettcher</author>
      <description>&lt;br&gt;
[correcting top-post]&lt;br&gt;
&lt;br&gt;
"Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Steve Eddins &amp;lt;Steve.Eddins@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;fvpn6m$rt6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; Robert Johansson wrote:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; The matrix that I get from imread (and importdata) is of size&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; 87x87, that is not even close to what is needed to get a correct&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; version of the picture. I know what the picture should look&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; like. This is the file info:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;            FileSize: 3464&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;              Format: 'GIF'&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;       FormatVersion: '89a'&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;               Width: 87&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;              Height: 87&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;            BitDepth: 8&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;           ColorType: 'indexed'&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;     FormatSignature: 'GIF89a'&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;     BackgroundColor: 0&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;         AspectRatio: 0&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;          ColorTable: [256x3 double]&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;          Interlaced: 'no'&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; If I examine the file properties by right-clicking on it, the&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; system tells me that the size is given in "points" (87x87). Its a&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; picture of a logo which i want to use in LaTeX so my idea was to&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; convert it to eps with MATLAB.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; Sounds to me like you have a GIF file containing 87 rows and 87&lt;br&gt;
&amp;gt;&amp;gt; pixels, and this is what imread is giving you.  It also sounds to me&lt;br&gt;
&amp;gt;&amp;gt; like the Windows file properties dialog is confirming this for you.&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Try reading the image file using some other application if you still&lt;br&gt;
&amp;gt;&amp;gt; have doubts.&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Where is your notion of "correct version of the picture" coming from?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Its a logotype. &lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href="http://www.umu.se/umu/profil/allmant/logotyp.html"&gt;http://www.umu.se/umu/profil/allmant/logotyp.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The one to the left is of size 101x101 but a matrix of &lt;br&gt;
&amp;gt; 101x101 is not enough to describe it. I guess that it has &lt;br&gt;
&amp;gt; something to do with to file format.&lt;br&gt;
&lt;br&gt;
What?  You really need to explain what you mean by "not enough to&lt;br&gt;
describe it", or "not even close to what is needed to get a correct&lt;br&gt;
version of".  Everything seems entirely consistent.  The image has size&lt;br&gt;
101x101 pixels.  It is displayed at exactly that size on the web.&lt;br&gt;
Windows "properties" says it is 101x101 pixels.  When you read it into&lt;br&gt;
MATLAB you get a matrix of 101x101 pixels.&lt;br&gt;
&lt;br&gt;
And when I display the 101x101 matrix in MATLAB, it looks exactly like&lt;br&gt;
the web.&lt;br&gt;
&lt;br&gt;
Maybe the code you use to display the image is wrong?  Here's what I&lt;br&gt;
did:&lt;br&gt;
&lt;br&gt;
[s map] = imread('UMU_pos.gif');&lt;br&gt;
image(s);&lt;br&gt;
colormap(map);&lt;br&gt;
truesize;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-Peter&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 16:56:04 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430615</link>
      <author>Robert Johansson</author>
      <description>Its a logotype. &lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.umu.se/umu/profil/allmant/logotyp.html"&gt;http://www.umu.se/umu/profil/allmant/logotyp.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
The one to the left is of size 101x101 but a matrix of &lt;br&gt;
101x101 is not enough to describe it. I guess that it has &lt;br&gt;
something to do with to file format.&lt;br&gt;
&lt;br&gt;
/Robert&lt;br&gt;
&lt;br&gt;
Steve Eddins &amp;lt;Steve.Eddins@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fvpn6m$rt6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Robert Johansson wrote:&lt;br&gt;
&amp;gt; &amp;gt; The matrix that I get from imread (and importdata) is &lt;br&gt;
of &lt;br&gt;
&amp;gt; &amp;gt; size 87x87, that is not even close to what is needed to &lt;br&gt;
get &lt;br&gt;
&amp;gt; &amp;gt; a correct version of the picture. I know what the &lt;br&gt;
picture &lt;br&gt;
&amp;gt; &amp;gt; should look like. This is the file info:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;            FileSize: 3464&lt;br&gt;
&amp;gt; &amp;gt;              Format: 'GIF'&lt;br&gt;
&amp;gt; &amp;gt;       FormatVersion: '89a'&lt;br&gt;
&amp;gt; &amp;gt;               Width: 87&lt;br&gt;
&amp;gt; &amp;gt;              Height: 87&lt;br&gt;
&amp;gt; &amp;gt;            BitDepth: 8&lt;br&gt;
&amp;gt; &amp;gt;           ColorType: 'indexed'&lt;br&gt;
&amp;gt; &amp;gt;     FormatSignature: 'GIF89a'&lt;br&gt;
&amp;gt; &amp;gt;     BackgroundColor: 0&lt;br&gt;
&amp;gt; &amp;gt;         AspectRatio: 0&lt;br&gt;
&amp;gt; &amp;gt;          ColorTable: [256x3 double]&lt;br&gt;
&amp;gt; &amp;gt;          Interlaced: 'no'&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If I examine the file properties by right-clicking on &lt;br&gt;
it, &lt;br&gt;
&amp;gt; &amp;gt; the system tells me that the size is given in "points" &lt;br&gt;
&amp;gt; &amp;gt; (87x87). Its a picture of a logo which i want to use in &lt;br&gt;
&amp;gt; &amp;gt; LaTeX so my idea was to convert it to eps with MATLAB.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; /Robert&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sounds to me like you have a GIF file containing 87 rows &lt;br&gt;
and 87 pixels, &lt;br&gt;
&amp;gt; and this is what imread is giving you.  It also sounds to &lt;br&gt;
me like the &lt;br&gt;
&amp;gt; Windows file properties dialog is confirming this for you.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Try reading the image file using some other application &lt;br&gt;
if you still &lt;br&gt;
&amp;gt; have doubts.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Where is your notion of "correct version of the picture" &lt;br&gt;
coming from?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Steve&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 13:41:42 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430566</link>
      <author>Steve Eddins</author>
      <description>Robert Johansson wrote:&lt;br&gt;
&amp;gt; The matrix that I get from imread (and importdata) is of &lt;br&gt;
&amp;gt; size 87x87, that is not even close to what is needed to get &lt;br&gt;
&amp;gt; a correct version of the picture. I know what the picture &lt;br&gt;
&amp;gt; should look like. This is the file info:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;            FileSize: 3464&lt;br&gt;
&amp;gt;              Format: 'GIF'&lt;br&gt;
&amp;gt;       FormatVersion: '89a'&lt;br&gt;
&amp;gt;               Width: 87&lt;br&gt;
&amp;gt;              Height: 87&lt;br&gt;
&amp;gt;            BitDepth: 8&lt;br&gt;
&amp;gt;           ColorType: 'indexed'&lt;br&gt;
&amp;gt;     FormatSignature: 'GIF89a'&lt;br&gt;
&amp;gt;     BackgroundColor: 0&lt;br&gt;
&amp;gt;         AspectRatio: 0&lt;br&gt;
&amp;gt;          ColorTable: [256x3 double]&lt;br&gt;
&amp;gt;          Interlaced: 'no'&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I examine the file properties by right-clicking on it, &lt;br&gt;
&amp;gt; the system tells me that the size is given in "points" &lt;br&gt;
&amp;gt; (87x87). Its a picture of a logo which i want to use in &lt;br&gt;
&amp;gt; LaTeX so my idea was to convert it to eps with MATLAB.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; /Robert&lt;br&gt;
&lt;br&gt;
Sounds to me like you have a GIF file containing 87 rows and 87 pixels, &lt;br&gt;
and this is what imread is giving you.  It also sounds to me like the &lt;br&gt;
Windows file properties dialog is confirming this for you.&lt;br&gt;
&lt;br&gt;
Try reading the image file using some other application if you still &lt;br&gt;
have doubts.&lt;br&gt;
&lt;br&gt;
Where is your notion of "correct version of the picture" coming from?&lt;br&gt;
&lt;br&gt;
Steve&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 13:12:03 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430550</link>
      <author>Robert Johansson</author>
      <description>The matrix that I get from imread (and importdata) is of &lt;br&gt;
size 87x87, that is not even close to what is needed to get &lt;br&gt;
a correct version of the picture. I know what the picture &lt;br&gt;
should look like. This is the file info:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileSize: 3464&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Format: 'GIF'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FormatVersion: '89a'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Width: 87&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Height: 87&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BitDepth: 8&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ColorType: 'indexed'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FormatSignature: 'GIF89a'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BackgroundColor: 0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AspectRatio: 0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ColorTable: [256x3 double]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Interlaced: 'no'&lt;br&gt;
&lt;br&gt;
If I examine the file properties by right-clicking on it, &lt;br&gt;
the system tells me that the size is given in "points" &lt;br&gt;
(87x87). Its a picture of a logo which i want to use in &lt;br&gt;
LaTeX so my idea was to convert it to eps with MATLAB.&lt;br&gt;
&lt;br&gt;
/Robert&lt;br&gt;
&lt;br&gt;
Steve Eddins &amp;lt;Steve.Eddins@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fvn2qd$rpv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Robert Johansson wrote:&lt;br&gt;
&amp;gt; &amp;gt; I have a picture in GIF-format which I need to process &lt;br&gt;
and &lt;br&gt;
&amp;gt; &amp;gt; convert to eps. Using "imread", MATLAB reads the file &lt;br&gt;
into &lt;br&gt;
&amp;gt; &amp;gt; a matrix with too few rows and columns.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How do you know the matrix has too few rows and columns?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What does imfinfo say about the file?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; It seems that the &lt;br&gt;
&amp;gt; &amp;gt; information about the file dimension is in another unit.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What do you mean by "another unit"?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Can I control this? Looking through the helpfile I find &lt;br&gt;
&amp;gt; &amp;gt; references to commands like "readimage" but no &lt;br&gt;
&amp;gt; &amp;gt; documentation.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't see any mention of "readimage" in the M-file help &lt;br&gt;
or reference &lt;br&gt;
&amp;gt; page for imread.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What do you get when you type this at prompt:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;     which -all imread&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ---&lt;br&gt;
&amp;gt; Steve Eddins&lt;br&gt;
&amp;gt; &lt;a href="http://blogs.mathworks.com/steve/"&gt;http://blogs.mathworks.com/steve/&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 14:15:07 -0400</pubDate>
      <title>reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430354</link>
      <author>Sergey Karpov</author>
      <description>"Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fvl2ih$khs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a picture in GIF-format which I need to process and &lt;br&gt;
&amp;gt; convert to eps. Using "imread", MATLAB reads the file into &lt;br&gt;
&amp;gt; a matrix with too few rows and columns. It seems that the &lt;br&gt;
&amp;gt; information about the file dimension is in another unit. &lt;br&gt;
&amp;gt; Can I control this? Looking through the helpfile I find &lt;br&gt;
&amp;gt; references to commands like "readimage" but no &lt;br&gt;
&amp;gt; documentation.  &lt;br&gt;
&lt;br&gt;
Hi, &lt;br&gt;
&lt;br&gt;
better to use importdata, cause gif will be saved like a&lt;br&gt;
structure, here is a small example:&lt;br&gt;
&lt;br&gt;
your_gif = importdata('your-gif.gif');&lt;br&gt;
&lt;br&gt;
image(your_gif.cdata);&lt;br&gt;
colormap(your_gif.colormap);&lt;br&gt;
&lt;br&gt;
for converting it, u can use a figure menu,&lt;br&gt;
&lt;br&gt;
Bye&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 14:13:04 -0400</pubDate>
      <title>reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430352</link>
      <author>Sergey Karpov</author>
      <description>"Robert Johansson" &amp;lt;robert.nospam@math.umu.se&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fvl2ih$khs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a picture in GIF-format which I need to process and &lt;br&gt;
&amp;gt; convert to eps. Using "imread", MATLAB reads the file into &lt;br&gt;
&amp;gt; a matrix with too few rows and columns. It seems that the &lt;br&gt;
&amp;gt; information about the file dimension is in another unit. &lt;br&gt;
&amp;gt; Can I control this? Looking through the helpfile I find &lt;br&gt;
&amp;gt; references to commands like "readimage" but no &lt;br&gt;
&amp;gt; documentation.  &lt;br&gt;
&lt;br&gt;
Hi, &lt;br&gt;
&lt;br&gt;
better to use importdata, cause gif will be saved like a&lt;br&gt;
structure, here is a small example:&lt;br&gt;
&lt;br&gt;
your_gif = importdata('your-gif.gif');&lt;br&gt;
&lt;br&gt;
image(your_gif.cdata);&lt;br&gt;
colormap(your_gif.colormap);&lt;br&gt;
&lt;br&gt;
for converting it, u can use a figure menu,&lt;br&gt;
&lt;br&gt;
Bye&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 13:41:33 -0400</pubDate>
      <title>Re: reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430340</link>
      <author>Steve Eddins</author>
      <description>Robert Johansson wrote:&lt;br&gt;
&amp;gt; I have a picture in GIF-format which I need to process and &lt;br&gt;
&amp;gt; convert to eps. Using "imread", MATLAB reads the file into &lt;br&gt;
&amp;gt; a matrix with too few rows and columns.&lt;br&gt;
&lt;br&gt;
How do you know the matrix has too few rows and columns?&lt;br&gt;
&lt;br&gt;
What does imfinfo say about the file?&lt;br&gt;
&lt;br&gt;
&amp;gt; It seems that the &lt;br&gt;
&amp;gt; information about the file dimension is in another unit.&lt;br&gt;
&lt;br&gt;
What do you mean by "another unit"?&lt;br&gt;
&lt;br&gt;
&amp;gt; Can I control this? Looking through the helpfile I find &lt;br&gt;
&amp;gt; references to commands like "readimage" but no &lt;br&gt;
&amp;gt; documentation.&lt;br&gt;
&lt;br&gt;
I don't see any mention of "readimage" in the M-file help or reference &lt;br&gt;
page for imread.&lt;br&gt;
&lt;br&gt;
What do you get when you type this at prompt:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;which -all imread&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---&lt;br&gt;
Steve Eddins&lt;br&gt;
&lt;a href="http://blogs.mathworks.com/steve/"&gt;http://blogs.mathworks.com/steve/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 04 May 2008 19:25:05 -0400</pubDate>
      <title>reading gif</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168708#430203</link>
      <author>Robert Johansson</author>
      <description>I have a picture in GIF-format which I need to process and &lt;br&gt;
convert to eps. Using "imread", MATLAB reads the file into &lt;br&gt;
a matrix with too few rows and columns. It seems that the &lt;br&gt;
information about the file dimension is in another unit. &lt;br&gt;
Can I control this? Looking through the helpfile I find &lt;br&gt;
references to commands like "readimage" but no &lt;br&gt;
documentation.  &lt;br&gt;
</description>
    </item>
  </channel>
</rss>
