matlab中將RGB圖像轉化爲灰度圖像

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