how to convert a image to matrix?

7 次查看(过去 30 天)
how to convert a image to matrix?

采纳的回答

Jos (10584)
Jos (10584) 2014-2-24
M = imread('MyImage.png')
M is a matrix ...
  3 个评论
Laurent
Laurent 2014-2-24
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by