How to remove G from RGB image
이전 댓글 표시
How would you remove G from an RGB image?
댓글 수: 2
Image Analyst
2013년 10월 5일
What does this mean? Do you want to set the entire green channel to zero, like Walter did? Do you want to set green looking objects in the image to black? Do you want to go from a 3D color array with 3 color channels to a 3D array with only two color channels? Do you want to extract (segment) the green objects in the image and place them in a new, separate image? Please explain what you want to do so we can remove the uncertainty in your question.
Walter Roberson
2013년 10월 5일
Are you "green screening" ?
채택된 답변
추가 답변 (1개)
Walter Roberson
2013년 10월 5일
YourImage = imread('TheImage.jpg');
YourImage(:,:,2) = 0;
image(YourImage);
imwrite(YourImage, 'TheNewImage.jpg');
카테고리
도움말 센터 및 File Exchange에서 Red에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!