Posted by
Serapio M. Baca on
Dec 14, 2007; 6:11pm
URL: http://imagej.273.s1.nabble.com/Uncompressing-Tiff-files-created-in-Matlab-tp3697751p3697754.html
This should work to create an uncompressed tiff stack in MATLAB that
can be opened up in ImageJ. Please check the MATLAB documentation with
regard to how it handles the matrix with imwrite. If the matrix is not
scaled properly in MATLAB you will get a useless .tiff stack when
using imwrite.
% to get more information on additional options on the main function:
help imwrite
%to write your matlab matrix called "image_stack" of 200 frames of
data to a 512 by 512,16-bit, uncompressed tiff file named
"name_of_image_stack.tiff"
for i = 1:200
imwrite(uint16(image_stack(:,:,i)),...
'name_of_image_stack.tiff','tiff',...
'Compression','none',...
'WriteMode','append',...
'Resolution',[512 512],...
'Description','200 frames at 512 xres and 512 yres pixel resolution
with no compression');
end
-smb
On Dec 14, 2007, at 2:41 AM, Robert Edward Martin wrote:
> Greetings List,
>
> I have created a series of 3-D tiff matrices/images in Matlab and
> ImageJ does not seem to be able to uncompress these series of images.
> Does anyone know of a way to uncompress these so that I can scroll
> through them in ImageJ? Alternately, does anyone know how to create
> uncompressed tiffs in Matlab?
>
>
> Thanks
>
> Robert Martin