From: Christian Eschermann on
Hello,

for 150 0-1-pictures I need the 0-1-arrays. I can watch the pictures by using "imshow" but "imread" doesn't work.

_____________________________________________________________

[FileName, PathName] = uigetfile('*.mat','Daten auswählen');

A = importdata(FileName);

imshow(A(:,:,50),[0 1])
______________________________________________________________

imread(A(:,:,50),[0 1]) doesn't work. Why not? Is there any alternative?

Thank you.

Christian
From: Ashish Uthama on
On Fri, 14 May 2010 12:49:04 -0400, Christian Eschermann
<christian.eschermann(a)still.de> wrote:

> Hello,
>
> for 150 0-1-pictures I need the 0-1-arrays. I can watch the pictures by
> using "imshow" but "imread" doesn't work.
>
> _____________________________________________________________
>
> [FileName, PathName] = uigetfile('*.mat','Daten ausw�hlen'); A =
> importdata(FileName); imshow(A(:,:,50),[0 1])
> ______________________________________________________________
>
> imread(A(:,:,50),[0 1]) doesn't work. Why not? Is there any alternative?
>
> Thank you.
>
> Christian

help imread:


IMREAD Read image from graphics file.
A = IMREAD(FILENAME,FMT) reads a grayscale or color image from the file
specified by the string FILENAME. If the file is not in the current
directory, or in a directory on the MATLAB path, specify the full
pathname.

First argument is a file name.
From: us on
"Christian Eschermann" <christian.eschermann(a)still.de> wrote in message <hsjv0s$amq$1(a)fred.mathworks.com>...
> Hello,
>
> for 150 0-1-pictures I need the 0-1-arrays. I can watch the pictures by using "imshow" but "imread" doesn't work.
>
> _____________________________________________________________
>
> [FileName, PathName] = uigetfile('*.mat','Daten auswählen');
>
> A = importdata(FileName);
>
> imshow(A(:,:,50),[0 1])
> ______________________________________________________________
>
> imread(A(:,:,50),[0 1]) doesn't work. Why not? Is there any alternative?
>
> Thank you.
>
> Christian

well... how is this supposed to work(?)...
- IMREAD wants to READ a file, eg, your ...FileName...
- IMREAD does not know what to do with an (already slurped) mat, eg, your A...

us