how do i convert rgb image to grayscale and then back to rgb?
3 ビュー (過去 30 日間)
古いコメントを表示
please help me out if there is any method to do this
0 件のコメント
回答 (2 件)
Image Analyst
2017 年 3 月 30 日
Try
grayImage = rgb2gray(rgbImage); % Convert to gray scale.
rgbImage = ind2rgb(grayImage, colorMap); % Will not be the same original RGB image though.
0 件のコメント
TEJASWINI CHINAWALE
2017 年 9 月 21 日
You can try using jet(m) command which returns the colormap with m colors. You can change the value of m depending on how the converted image should look like.However it is not possible to obtain the original coloured image once you convert it to grayscale or any other form.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!