Tiff image to RGB
Afficher commentaires plus anciens
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.
Réponses (1)
Sulaymon Eshkabilov
le 4 Juin 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 commentaire
Maria Penas Leonor
le 4 Juin 2020
Catégories
En savoir plus sur Data Import and Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!