![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177346/image.jpeg)
How to convert a gray image to colour image
1 回表示 (過去 30 日間)
古いコメントを表示
How to convert an image which is in gray to a colour image.?
1 件のコメント
Yuji Zhang
2014 年 1 月 10 日
Hi~
I don't understand too much about unit8 things.
I did some test, hopefully helpful.
p1 = imread('p1.jpg');
I = im2double(p1);
pcolor(I(:,:,1)); shading interp;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177346/image.jpeg)
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Modify Image Colors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!