can we invert an image such that its true color can be retrieved?

2 views (last 30 days)
i want to invert the color of image such that it retrieves its original color at the place of a specific color.

Answers (1)

Image Analyst
Image Analyst on 3 Nov 2014
Given what you say, about the only thing I can assume is that somehow the true color image got inverted so you need to invert it back:
trueRGB = 255 - rgbImage;
Then use imfreehand(), gpinput(), or indexing to get the color at "the place". Better information will get you better answers.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!