Hi, i want to save a stack of grayscale or RGB images, already converted to one .tif file, into a 4D-array, where the fourth value is the number of the slice, just like in the MATLAB example "mri", to do some analysis, e.g displaying 3-D Contour Slices.
I think in the example they used indexed images, so i already did this:
I = imread('D:\Images\Test\1.tif');
[D, map] = gray2ind(I,255);
imshow(D, map);
Can anybody please help? Thanks in advance.
Best Answer