MATLAB: Saving coloured image in gui

guiImage Processing Toolboxmaximum intensity projection

hiii all!!' i was trying to save an image in tif format after doing maximum intensity projection!!whenever m saving the image stored is in grey scale…my original image colour is green….can anyone give me a solution!!thanks in advance

Best Answer

Are you SURE? Have you passed the image you're passing to imwrite() into the size() function and seen what it says?
[rows, columns, numberOfColorChannels] = size(yourImage) % No semicolon
whos yourImage
What gets reported to the command line for numberOfColorChannels and the data type? If it's 1 instead of 3, then it's gray scale, NOT color. If it's 3, it should save as color, if it's uint8.