Change the intensity of blue in a .jpg
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Nov. 2012
% 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 Kommentare
Image Analyst
am 20 Nov. 2012
blueChannel = uint8(single(blueChannel) + 255*BX/100);
Then recombine and show the final image:
imshow(rgbImage);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!