Clear Filters
Clear Filters

how to convert index image into rgb image

1 view (last 30 days)
how to convert index image into rgb image
  1 Comment
kamarthi vanitha
kamarthi vanitha on 6 Jul 2019
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

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Tags

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!