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!