
Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how to form the final image from red green and blue channels
조회 수: 1 (최근 30일)
이전 댓글 표시
i have extracted the red green and blue channels from the image and had done different operations on it. now i want to form the final image from the different channels of the original image.
댓글 수: 0
답변 (1개)
Christiaan
2015년 4월 1일
편집: Christiaan
2015년 4월 1일
Dear Abira,
Below you find a small example how this can be implemented.
% Read any image you like
rgbImage = imread('board.jpg');
% Display this image
subplot(1, 2, 1);
imshow(rgbImage);
title('Original RGB Image');
% Maximize figure
set(gcf, 'Position', get(0, 'ScreenSize'));
% Split into color bands.
redBand = rgbImage(:,:, 1);
greenBand = rgbImage(:,:, 2);
blueBand = rgbImage(:,:, 3);
% Display image after contracting the colour bands again
subplot(1, 2, 2);
im = cat(3,redBand,greenBand,blueBand);
imshow(im);
title('Blue Objects');
Good luck! Christiaan

댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!