Akzeptierte Antwort

Image Analyst
Image Analyst am 15 Jan. 2015

2 Stimmen

See this snippet:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% To recombine separate color channels into a single, true color RGB image.
rgbImage = cat(3, redChannel, greenChannel, blueChannel);

Weitere Antworten (1)

Fahim
Fahim am 17 Mai 2016

0 Stimmen

can I ask a question here ? how can we extract the pixel of blue channel? i want to embed an image exactly to blue Channel.so I need extract the pixel of blue channel as an array .

1 Kommentar

I answered it above. Again:
blueChannel = rgbImage(:, :, 3);
If you still need help, start a new question and attach your image.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by