Change the intensity of blue in a .jpg

조회 수: 3 (최근 30일)
Billy
Billy 2012년 11월 20일
Hello, how do I change the blue intensity of a .jpg so that the new image is combination of rg and the new b. Thanks.

채택된 답변

Image Analyst
Image Analyst 2012년 11월 20일
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Now change the blue channel in whatever way you want.
blueChannel = whatever.........
% Then recombine into the new color image.
rgbImage = cat(3, redChannel, greenChannel, blueChannel);
  댓글 수: 6
Image Analyst
Image Analyst 2012년 11월 20일
blueChannel = uint8(single(blueChannel) + 255*BX/100);
Then recombine and show the final image:
imshow(rgbImage);
Billy
Billy 2012년 11월 20일
Thank You VERY Much. That saved a lot of headache.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by