Path: news.mathworks.com!not-for-mail
From: "Robert Johansson" <robert.nospam@math.umu.se>
Newsgroups: comp.soft-sys.matlab
Subject: Re: reading gif
Date: Tue, 6 May 2008 13:12:03 +0000 (UTC)
Organization: Ume&#229;
Lines: 61
Message-ID: <fvplf3$4ln$1@fred.mathworks.com>
References: <fvl2ih$khs$1@fred.mathworks.com> <fvn2qd$rpv$1@fred.mathworks.com>
Reply-To: "Robert Johansson" <robert.nospam@math.umu.se>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210079523 4791 172.30.248.37 (6 May 2008 13:12:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 6 May 2008 13:12:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1129354
Xref: news.mathworks.com comp.soft-sys.matlab:466896


The matrix that I get from imread (and importdata) is of 
size 87x87, that is not even close to what is needed to get 
a correct version of the picture. I know what the picture 
should look like. This is the file info:

           FileSize: 3464
             Format: 'GIF'
      FormatVersion: '89a'
              Width: 87
             Height: 87
           BitDepth: 8
          ColorType: 'indexed'
    FormatSignature: 'GIF89a'
    BackgroundColor: 0
        AspectRatio: 0
         ColorTable: [256x3 double]
         Interlaced: 'no'

If I examine the file properties by right-clicking on it, 
the system tells me that the size is given in "points" 
(87x87). Its a picture of a logo which i want to use in 
LaTeX so my idea was to convert it to eps with MATLAB.

/Robert

Steve Eddins <Steve.Eddins@mathworks.com> wrote in message 
<fvn2qd$rpv$1@fred.mathworks.com>...
> Robert Johansson wrote:
> > I have a picture in GIF-format which I need to process 
and 
> > convert to eps. Using "imread", MATLAB reads the file 
into 
> > a matrix with too few rows and columns.
> 
> How do you know the matrix has too few rows and columns?
> 
> What does imfinfo say about the file?
> 
> > It seems that the 
> > information about the file dimension is in another unit.
> 
> What do you mean by "another unit"?
> 
> > Can I control this? Looking through the helpfile I find 
> > references to commands like "readimage" but no 
> > documentation.
> 
> I don't see any mention of "readimage" in the M-file help 
or reference 
> page for imread.
> 
> What do you get when you type this at prompt:
> 
>     which -all imread
> 
> 
> ---
> Steve Eddins
> http://blogs.mathworks.com/steve/
>