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

2 次查看(过去 30 天)
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

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by