convertion rgb image blue channel image

조회 수: 11 (최근 30일)
Farjana Yeasmin
Farjana Yeasmin 2015년 1월 15일
댓글: Image Analyst 2016년 5월 17일
how i get a blue channel image from a rgb image ?

채택된 답변

Image Analyst
Image Analyst 2015년 1월 15일
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);

추가 답변 (1개)

Fahim
Fahim 2016년 5월 17일
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
Image Analyst
Image Analyst 2016년 5월 17일
I answered it above. Again:
blueChannel = rgbImage(:, :, 3);
If you still need help, start a new question and attach your image.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Color Space Formatting and Conversions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by