RGB images 3 dimensional??

20 次查看(过去 30 天)
ABTJ
ABTJ 2020-5-3
评论: Stephen23 2020-5-3
What is the dimension size of RGB image matrix? Are they three dimensional or two dimensional?

采纳的回答

KSSV
KSSV 2020-5-3
RGB image will be a 3D matrix.....it will be of size m*n*3. It has three color channels. You can seperate them using:
I = imread("MyColorImage") ;
[m,n,p] = size(I) ; % note p = 3
R = I(:,:,1) ; % Red
G = I(:,:,2) ; % Green
B = I(:,:,3) ; % Blue

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品


版本

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by