how to convert a image to matrix?

7 visualizaciones (últimos 30 días)
azar
azar el 24 de Feb. de 2014
Comentada: Simon Song el 1 de Mayo de 2020
how to convert a image to matrix?

Respuesta aceptada

Jos (10584)
Jos (10584) el 24 de Feb. de 2014
M = imread('MyImage.png')
M is a matrix ...
  3 comentarios
Laurent
Laurent el 24 de Feb. de 2014
size(M)
will give you the length of each dimension.
ndims(M)
gives you the number of dimensions of your image, which will probably be 2.
Simon Song
Simon Song el 1 de Mayo de 2020
nice solution!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by