How can I read, in matlab, an image I have on my desktp with the imread () function?
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I read, in matlab, an image I have on my desktp with the imread () function?
댓글 수: 0
답변 (1개)
Wick
2018년 5월 1일
You must put the name of the image in single quotes in the command. If the image is in a path beneath where MATLAB is currently executing, include the subfolders in the name. If it's somewhere else, use the entire path.
Assuming the file name is image_to_load.png then simply run:
img = imread('image_to_load.png');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!