Effacer les filtres
Effacer les filtres

RGB images 3 dimensional??

16 vues (au cours des 30 derniers jours)
ABTJ
ABTJ le 3 Mai 2020
Commenté : Stephen23 le 3 Mai 2020
What is the dimension size of RGB image matrix? Are they three dimensional or two dimensional?
  1 commentaire
Stephen23
Stephen23 le 3 Mai 2020
Different image types are explained very well in the MATLAB documentation:

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 3 Mai 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

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Produits


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by