how to convert a tif image to a m-by-n-by-3 array
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi. How can I a convert a tif image to a m-by-n-by-3 array? I am trying to use the code of boxcount but I am having problems because my image is in the format, being that the code is for m-by-n or m-by-n-by-3 array.
8 commentaires
Walter Roberson
le 22 Juil 2022
A = imread('B2.tif');
RGB = repmat(A, 1, 1, 3);
imshow(RGB)
Réponses (1)
Chunru
le 22 Juil 2022
[a, cmap] = imread("corn.tif");
subplot(121); imshow(a, cmap);
b = ind2rgb(a, cmap);
subplot(122); imshow(b);
whos b
3 commentaires
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!