[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: imread (repost)
From: |
John W. Eaton |
Subject: |
Re: imread (repost) |
Date: |
Tue, 05 Aug 2008 22:34:32 -0400 |
On 5-Aug-2008, Thomas L. Scofield wrote:
|
| On Aug 5, 2008, at 4:53 PM, Søren Hauberg wrote:
|
| > tir, 05 08 2008 kl. 22:50 +0200, skrev Søren Hauberg:
| >> tir, 05 08 2008 kl. 10:35 -0400, skrev Thomas L. Scofield:
| >>> That's not the kind of modification I was suggesting for imshow. I
| >>> was suggesting this much simpler change (pseudocode):
| >>>
| >>>
| >>> if (length (size (image)) == 3 && size (image, 3) == 4)
| >>> show image(:, :, 1:3)
| >>> else
| >>> show image
| >>> endif
| >>
| >> I can only see the point of this behaviour if 'imread' actually
| >> returns
| >> NxMx3 arrays.
| >
| > Aaarghh, I of course ment to write MxNx4 here...
| >
|
|
| That brings us back around to my original post. I have examples of
| png files for which
|
| im = imread ("file.png");
| size (im, 3)
|
| produces the output 4.
Can you find out what Matlab's imread returns for this file? I'm also
curious about what happens if you call imread like this:
[im, map, alpha] = imread ('file.png')
Thanks,
jwe
- imread (repost), Thomas L. Scofield, 2008/08/04
- Re: imread (repost), Søren Hauberg, 2008/08/05
- Re: imread (repost), Thomas L. Scofield, 2008/08/05
- Re: imread (repost), Søren Hauberg, 2008/08/05
- Re: imread (repost), Søren Hauberg, 2008/08/05
- Re: imread (repost), Thomas L. Scofield, 2008/08/05
- Re: imread (repost),
John W. Eaton <=
- Re: imread (repost), Thomas L. Scofield, 2008/08/05
- Re: imread (repost), John W. Eaton, 2008/08/05
- Re: imread (repost), John W. Eaton, 2008/08/06
- Re: imread (repost), Thomas L. Scofield, 2008/08/06
- Re: imread (repost), John W. Eaton, 2008/08/06
- Re: imread (repost), Bill Denney, 2008/08/05