MATLAB Answers

Tiff image to RGB

5 views (last 30 days)
Maria Penas Leonor
Maria Penas Leonor on 4 Jun 2020
Hello! I have a TIFF with 162 images that represend all the cuts of one hair follicle. I would like to convert it to RGB so that they show green and red colours as taken with the confocal microscope. After that, I would like them to overlap them showing only one picture. How can I do this? I cannot attach the file since it is too big.
Thank you.

  0 Comments

Sign in to comment.

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 4 Jun 2020
Hi,
Here is a short code how you can start working on:
F1 = 'Name'; % Name of your Tiff files as e.g.: Name1.tiff, Name2.tiff, etc
Ext='.tiff';
for ii=1:7
ADAT = strcat(F1, num2str(ii), Ext);
DATA = imread(ADAT);
R=DATA(:,:,1);
G=DATA(:,:,2);
B=DATA(:,:,3);
end

  1 Comment

Maria Penas Leonor
Maria Penas Leonor on 4 Jun 2020
I only have one tiff

Sign in to comment.

Tags