【Matlab圖像處理100問】Q001:通道交換
Matlab圖像處理100問
問題來源:https://github.com/gzr2017/ImageProcessing100Wen
圖像來源:https://wallhaven.cc/
環(huán)境:Matlab 2020a+實(shí)時(shí)編輯器?
?花小白2020



程序段:
Img=imread("BaseImg.jpg");
%RGB => BGR
R=Img(:,:,1);
G=Img(:,:,2);
B=Img(:,:,3);
ImgBGR(:,:,1)=B;
ImgBGR(:,:,2)=G;
ImgBGR(:,:,3)=R;
imshow(ImgBGR)
?花小白2020
標(biāo)簽: