From: Christian Eschermann on
Hello - showing one of the pictures works by using "imshow" but I also need the 01-array-data.

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

A = importdata(FileName);

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

I think "imread" doesn't work because it's a .mat-file. By using load I only get

B =

Avizo_trialrotshort_mat: [105x177x217 uint8]


no data...

Can you help me?

Thank you.
Christian
From: Walter Roberson on
Christian Eschermann wrote:
> Hello - showing one of the pictures works by using "imshow" but I also
> need the 01-array-data.

> _________________________________________________________
> [FileName, PathName] = uigetfile('*.mat','Daten auswählen');
> A = importdata(FileName);
> imshow(A(:,:,50),[0 1])
> _________________________________________________________
>
> I think "imread" doesn't work because it's a .mat-file.

As you were told before, your "A" already *is* the data, and there is no
need to try to read it again.

> By using load I
> only get
> B =
> Avizo_trialrotshort_mat: [105x177x217 uint8]
>
>
> no data...

The data would be addressed as B.Avizo_trialrotshort_mat(:,:,50) or the
like.

I do not know what you mean by "the 01-array". If you need to convert
the image to black and white, there are a number of ways to do that. If
you need to convert the uint8 data (which would be integers in the range
0 to 255) into double data (which might be floating point data from 0 to
1) then there is a call that will do that.
From: Christian on
B.Avizo_trialrotshort_mat(:,:,50)

Thank U! That fixed it. I already have the black-white-pic. Just needed the 01-data of it. Great!