white contour on top of grayscale image
2 ビュー (過去 30 日間)
古いコメントを表示
Is there a method for changing the colorscale of your figure to grayscale without using the colormap('gray') option. I have an image which I want to publish in grayscale but I want to add a white contour plot on top of the image, by changing the image to grayscale it also changes the color of the contour to black, which I originally specified as white. Is there a method for working around this?
0 件のコメント
採用された回答
その他の回答 (1 件)
Image Analyst
2012 年 9 月 12 日
Did you try converting your image to grayscale using rgb2gray()? And then use export_fig() to save your image, after you've put contours or other graphics and annotation atop of it?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!