MATLAB中將彩色的圖像轉化爲灰度圖像

MyYuanLaiPic = imread('e:/image/matlab/darkMouse.jpg');%讀取RGB格式的圖像   MyFirstGrayPic = rgb2gray(MyYuanLaiPic);%用已有的函數進行RGB到灰度圖像的轉換      [rows , cols , colors] = size(MyYuanLaiPic);%獲得原來圖像的矩陣的參數   MidGr
相關文章
相關標籤/搜索