要获取 RGB 值:
RGB = imread('C:\Documents and Settings\student2\Desktop\Water lilies.jpg');
R = RGB(:, :, 1);
G = RGB(:, :, 2);
B = RGB(:, :, 3);
谁能告诉我为什么我们分别使用 1、2 和 3 来获得红色、绿色和蓝色矩阵?
要获取 RGB 值:
RGB = imread('C:\Documents and Settings\student2\Desktop\Water lilies.jpg');
R = RGB(:, :, 1);
G = RGB(:, :, 2);
B = RGB(:, :, 3);
谁能告诉我为什么我们分别使用 1、2 和 3 来获得红色、绿色和蓝色矩阵?