how to extract the green channel of a rgb image
조회 수: 5 (최근 30일)
이전 댓글 표시
i want to extract the green channel from rgb image
댓글 수: 0
답변 (1개)
Walter Roberson
2020년 3월 6일
G = YourMatrix(:, :, 3);
댓글 수: 1
DGM
2023년 12월 6일
G = YourMatrix(:, :, 2); % channels are ordered R,G,B
... or to just get all three,
[R G B] = imsplit(YourMatrix);
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!