I am getting error in this imread statement. I don't know where it's wrong, please help, thanks

조회 수: 1 (최근 30일)

답변 (2개)

Walter Roberson
Walter Roberson 2022년 5월 5일
You pressed the Run button to execute the code. When you press the Run button, MATLAB executes the code with no parameters, and makes no attempt to look anywhere to see if there just happens to be a variable named image_in.
You need to go to the command line and invoke the function, passing in the file name. Or do the equivalent in another block of code m
  댓글 수: 2
Image Analyst
Image Analyst 2022년 5월 7일
@Tuan Phung, please click the "Accept this answer" link to award Walter his "reputation points" and to let others know it's solved now. Thanks in advance. 🙂

댓글을 달려면 로그인하십시오.


yanqi liu
yanqi liu 2022년 5월 7일
yes,sir,may be make some parameters to the function,such as
re = img2coe3('./1.png', imread('football.jpg'));

카테고리

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