Change the intensity of blue in a .jpg
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
2012년 11월 20일
blueChannel = uint8(single(blueChannel) + 255*BX/100);
Then recombine and show the final image:
imshow(rgbImage);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!