Matrix Size of my images
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi. how do i check the matrix size of my image?
0 commentaires
Réponses (2)
Image Analyst
le 12 Sep 2012
[rows columns numberOfColorChannels] = size(yourImageArray); % Best way
For images, make sure you use the third output argument. Otherwise if it's a color image and you do
[rows columns] = size(yourImageArray); % unsafe way to do it.
then your columns will actually be columns multiplied by the number of color channels (3) in your image.
1 commentaire
Jan
le 12 Sep 2012
@Esther: It is not surprising that the command size determines the size of arrays. I recommend to read the "Getting Started" chapters of the documentation to learn at first the basics and at second how to find related information in the docs.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!