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

azar
azar el 24 de Feb. de 2014
i tried this but i want to know its dimension
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 Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 24 de Feb. de 2014

Comentada:

el 1 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by