how to convert index image into rgb image

3 次查看(过去 30 天)
how to convert index image into rgb image
  1 个评论
kamarthi vanitha
kamarthi vanitha 2019-7-6
if i use [X1,cmap]=imread('c09_1.tif');
RGB1 = ind2rgb(X1,cmap);I am getting error as:
Index in position 1 exceeds array bounds.
Error in ind2rgb (line 26)
r = zeros(size(a)); r(:) = cm(a,1);
Error in Script_gray (line 15)
RGB1 = ind2rgb(X1,cmap);
please fix this error

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by