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

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