How to change the colour of the backgroud

1 次查看(过去 30 天)
Hi, i rotate an image and i want to change the black background to white. Thanks in advance.

采纳的回答

Laurent
Laurent 2013-8-23
It depends on what type of image you have, but let's say it is a 8-bit grayscale image. In that case you can do the following:
thisim(thisim==0)=255;
where thisim contains your image.
If you would like a more specific answer, please provide us your image.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Display Image 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by