how to convert a image to matrix?

7 vues (au cours des 30 derniers jours)
azar
azar le 24 Fév 2014
Commenté : Simon Song le 1 Mai 2020
how to convert a image to matrix?

Réponse acceptée

Jos (10584)
Jos (10584) le 24 Fév 2014
M = imread('MyImage.png')
M is a matrix ...
  3 commentaires
Laurent
Laurent le 24 Fév 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 le 1 Mai 2020
nice solution!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by