Save a Tiff image to open as RGB with ImageJ

Hi
my question is quite simple but I can't find a way to solve my little problem. How can we save an image in RGB format so that ImageJ opens it as a 'RGB color' image instead of a composite image?
thanks

Answers (1)

imwrite(rgbImage, filename);

5 Comments

Oh thanks, I think I should have mentioned a few details however since I'm currently using imwrite and it does not work exactly as I would like. Actually I want to save an image sequence contained in a cell array named "SequenceToExport". This is the code I'm using:
for i = 1:FrameNumber
ExportedName = sprintf('%s%s%d.tif',fileName,'T',i);
imwrite(SequenceToExport{i},ExportedName,'tif','WriteMode','overwrite','Compression','none');
end
It works fine but ImageJ recognizes the data as 16-bit images. Sorry I don't know the exact terminology I should be using. Thanks!
What is the data type of SequenceToExport{i}? Is it uint16? Or uint8? Whatever it is, ImageJ should recognize it as the same data type.
It's uint16 so it does make sense yes.
Actually no since images won't open as RGB in ImageJ. I get that they are coded in 16-bit and that the format is right, but I don't understand why all 3 channels are not merged so that ImageJ opens them all at once as 'RGB color'. Thanks for your help.

Sign in to comment.

Asked:

on 30 May 2014

Commented:

on 2 Jun 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!