在matlab中,我使用以下代碼:img = rgb2gray(imread('image.png')); ... 2請注意,您可以將與rgb2gray函數相同的內容編寫為: gray = np.mean(rgb, -1) 。
確定! 回上一頁