Effacer les filtres
Effacer les filtres

How to extract image from a multidimensional matrix ?

4 vues (au cours des 30 derniers jours)
Mariem Harmassi
Mariem Harmassi le 29 Nov 2012
I downloaded the USPS database a set of 1100 images per number from 0to9 . USPS is a data 256x1100x10 uint8 matrix , so how can I extract one image and the set corresponding to one number ????

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Nov 2012
data(:, ImageNumber, DigitNumber)
which would seem to give you a vector of 256 elements. I have to wonder whether that is then intended to be reshaped to 8 x 8, or if instead you missed a dimension when you write the size?
I do not know if the digits start from 0 and go to 9, or start from 1, go to 9, and then have 0.
  2 commentaires
Image Analyst
Image Analyst le 29 Nov 2012
Yeah, way too low a resolution. I would guess it must be 256 by 256 pixel images, 1100 of them, and the 4th dimension is the number 0-9. What does it say when you do "whos USPS" or whatever your multidimensional matrix is called?
Mariem Harmassi
Mariem Harmassi le 29 Nov 2012
Think you for answering , i resolved the problem ,itis an 8*8 image dimension . :))))

Connectez-vous pour commenter.

Plus de réponses (0)


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


Community Treasure Hunt

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

Start Hunting!

Translated by