MATLAB Answers

RGB images 3 dimensional??

18 views (last 30 days)
ABTJ
ABTJ on 3 May 2020
What is the dimension size of RGB image matrix? Are they three dimensional or two dimensional?

  1 Comment

Stephen Cobeldick
Stephen Cobeldick on 3 May 2020
Different image types are explained very well in the MATLAB documentation:

Sign in to comment.

Accepted Answer

KSSV
KSSV on 3 May 2020
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 Comments

Sign in to comment.

More Answers (0)

Categories


Translated by