How would i convert a grayscale image to a false color image?
15 ビュー (過去 30 日間)
古いコメントを表示
I would like to convert images that are grayscale to color. I need to find out a way to save images that look like what happens when you type image(grayscaleimage) into the code.
0 件のコメント
回答 (1 件)
Image Analyst
2012 年 8 月 29 日
For the first question on pseudocoloring, use colormap() or ind2rgb().
For the second question on saving a grayscale image, either really grayscale or one converted to rgb via ind2rgb(), use imwrite().
3 件のコメント
Image Analyst
2012 年 8 月 30 日
So give it a colormap, like
pseudoColoredImage = ind2rgb(grayImage, jet(256));
You can pseudocolor a video by doing it one frame at a time and writing it back out as a color video. Use the VideoWriter class.
参考
カテゴリ
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!