Borrar filtros
Borrar filtros

How to extract image from a multidimensional matrix ?

1 visualización (últimos 30 días)
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 ????

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Nov. de 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 comentarios
Image Analyst
Image Analyst el 29 de Nov. de 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 el 29 de Nov. de 2012
Think you for answering , i resolved the problem ,itis an 8*8 image dimension . :))))

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by