İ 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
0 件のコメント
回答 (1 件)
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
1 件のコメント
Scott Staniewicz
2018 年 1 月 16 日
Doesn't this swap the Red with the Green (if it's RGB)? To swap red/blue, they would want
newii(:,:,1)=ii(:,:,3);
newii(:,:,2)=ii(:,:,2);
newii(:,:,3)=ii(:,:,1);
参考
カテゴリ
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!