İ need to switch red and blue colors in RGB picture. How i can do that? my version of matlab is R2013a

2 次查看(过去 30 天)
İ need to switch red and blue colors in RGB picture. How i can do that? my version of matlab is R2013a

回答(1 个)

Thomas
Thomas 2014-3-3
编辑:Thomas 2014-3-3
Similar question:
or
ii=imread('1.jpg'); % load original
figure()
imshow(ii) % show orignal
newii(:,:,1)=ii(:,:,2);
newii(:,:,2)=ii(:,:,1);
newii(:,:,3)=ii(:,:,3);
figure()
imshow(newii) % show new

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by