Changing color in matlab
Show older comments
I've attached an image herewith. I want to change the color from green to red. Thanks.
Accepted Answer
More Answers (2)
I=imread("xyz_converted.png");
I(:,:,1)=I(:,:,2);
[m,n,~]=size(I);
I(:,:,2)=zeros(m,n);
imshow(I)
A = imread('xyz_converted.png');
[R,G,B] = imsplit(A);
B=cat(3,G, 0*R,0*B);
imshow(B)
Categories
Find more on Image Quality in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




