What is the dimension size of RGB image matrix? Are they three dimensional or two dimensional?

 채택된 답변

KSSV
KSSV 2020년 5월 3일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

릴리스

R2015a

질문:

2020년 5월 3일

댓글:

2020년 5월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by