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!