How to convert a color of image to green?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have this code for converting it to red
if true
I= imread('1.tif');
R = I(:,:,1);
image(R), colormap([[0:1/255:1]', zeros(256,1), zeros(256,1)]), colorbar;
end
I changed the number 1 to 2 or 3 I got this message
Index in position 3 exceeds array bounds (must not exceed 1).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190574/image.jpeg)
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Green에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!