Change the intensity of blue in a .jpg

3 visualizaciones (últimos 30 días)
Billy
Billy el 20 de Nov. de 2012
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.

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Nov. de 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 comentarios
Image Analyst
Image Analyst el 20 de Nov. de 2012
blueChannel = uint8(single(blueChannel) + 255*BX/100);
Then recombine and show the final image:
imshow(rgbImage);
Billy
Billy el 20 de Nov. de 2012
Thank You VERY Much. That saved a lot of headache.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by