How do I turn an image jpg image into a matrix using the 'imread' command? and image analysis

조회 수: 6 (최근 30일)
I know that I should use the `imread` command but I don't know how to retrieve an image from a particular file do I have to import it first? I did that and used the following:
>> M = imread(130510_120,jpg)
M = imread(130510_120,jpg)
|
Error: The input character is not valid in MATLAB statements or
expressions.
Or do put the exact file location:
>> M = imread(C:\Users\bostock_h\Documents\Images\130510_120, jpg) M = imread(C:\Users\bostock_h\Documents\Images\130510_120, jpg) | Error: Unexpected MATLAB operator.
Or is there something else I'm doing wrong?
Also how do I make the resulting matrix into just n*m matrix which just gives the intensity of the elements without colour.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 21일
M = imread('C:\Users\bostock_h\Documents\Images\130510_120.jpg')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by