Color matching/ re-coloring an image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all
I have never explored matLAB's color finding capabilities, but have a need to take an image with varying shades of red and change it to full spectrum. I also have a calibrated scale of what each shade of red means and need to incorporate this data to the newly colored picture as well.
Any help would be wonderful!
Antworten (1)
Image Analyst
am 24 Mär. 2013
Convert your rgb image to hsv color space with rgb2hsv. Scale the red from 0 - 0.1 and 0.9 - 1.0 so that it goes from 0-1. It's a bit tricky since the red spans the break at the 0/1 boundary (orangish reds occur less than 0.1 while other purplish reds occur at more than 0.9). Then convert back to rgb color space. Then all the "red" hues will now span the entire color range. That's the basic algorithm, if I understood what you want to do correctly. Give that a shot. Write back if you are having trouble.
2 Kommentare
Walter Roberson
am 24 Mär. 2013
I think Thomas has a look-up table that converts original red intensity to data value, and so is wanting to detect which hue is present, convert to data, and then reconvert to image with the span of data corresponding to complete red intensity scale.
This could potentially be done as one conversion step instead of two.
Image Analyst
am 24 Mär. 2013
Could be. Totally different that what I first assumed. So, I'll just echo his statement back to him: "Any help would be wonderful!" With more and better explanation, perhaps we can git the question figured out and propose a meaningful solution.
Siehe auch
Kategorien
Mehr zu Color and Styling finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!