How to extract image from a multidimensional matrix ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 ????
0 Commenti
Risposta accettata
Walter Roberson
il 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 Commenti
Image Analyst
il 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?
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!