How can I display an image with all three color layers but with intensity for blue increased?

2 views (last 30 days)
Hi, I am working on an image which has a 'true color' color type. I am supposed to display an image by changing the color intensity for Blue only and showing all three color layers. I have to increase the color density of blue by a given factor of the maximum density 255. I am not supposed to increase the intensity for a pixel past the maximum value. That is, for each blue pixel, new value = round of orig value + 255*BX/100 not to exceed 255. I already have all three colors set at 255 max so I'm not sure how to even start doing this. Please help

Answers (1)

Harshit
Harshit on 20 Nov 2012
image(:,:,3) = round(image(:,:,3) + 255*BX/100

Categories

Find more on Modify Image Colors 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!