how to convert a image to matrix?
7 views (last 30 days)
Show older comments
how to convert a image to matrix?
0 Comments
Accepted Answer
Jos (10584)
on 24 Feb 2014
M = imread('MyImage.png')
M is a matrix ...
3 Comments
Laurent
on 24 Feb 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.
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!