is it possible to convert binary image to rgb image or i want to replace all pixel values 0 by some red or green color in new image?
2 ビュー (過去 30 日間)
古いコメントを表示
is it possible to convert binary image to rgb image or i want to replace all pixel values 0 by some red or green color in new image using matlab code?
0 件のコメント
採用された回答
Christoph
2011 年 7 月 20 日
How about
image=repmat(double(image),[1,1,3]);
this way you have a matrix with 3 dimensions. image(:,:,1)is the red channel, image(:,:,2) the green one and image(:,:,3) is blue. Now you could set the channels according to your needs.
Hope this helps
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!