How to extract image from a multidimensional matrix ?
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2012 年 11 月 29 日
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 件のコメント
Image Analyst
2012 年 11 月 29 日
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?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!