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

5 ビュー (過去 30 日間)
jorge
jorge 2012 年 11 月 20 日
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

回答 (1 件)

Harshit
Harshit 2012 年 11 月 20 日
image(:,:,3) = round(image(:,:,3) + 255*BX/100

Community Treasure Hunt

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

Start Hunting!

Translated by