how to convert a tif image to a m-by-n-by-3 array
16 ビュー (過去 30 日間)
古いコメントを表示
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.
回答 (1 件)
Chunru
2022 年 7 月 22 日
[a, cmap] = imread("corn.tif");
subplot(121); imshow(a, cmap);
b = ind2rgb(a, cmap);
subplot(122); imshow(b);
whos b
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!