MATLAB: White contour on top of grayscale image

image

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?

Best Answer

See the MATLAB File Exchange contribution "freezeColors"
Related Question