why won't imshow display an image?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
In following a demonstration I typed
>> I=imread('pout.tif');
>> imshow(I)
To which MATLAB (my version is R2014a) responded:
Attempt to call constructor image with incorrect letter case.
Error in basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 266)
hh = basicImageDisplay(fig_handle,ax_handle,...
I have tried nothing and it still won't work! Does anyone know how I can appease MATLAB?
0 comentarios
Respuestas (1)
Image Analyst
el 13 de Sept. de 2015
Run this code:
% Check that user has the Image Processing Toolbox installed.
hasIPT = license('test', 'image_toolbox');
if ~hasIPT
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have the Image Processing Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
end
See if it tells you that you don't have the Image Processing Toolbox. I believe imshow() wasn't added to base MATLAB until after the version you have.
2 comentarios
Image Analyst
el 13 de Sept. de 2015
Yes you did something wrong. My code does not even call the function "image()". Anyway, that is just a warning and the code should still run, or produce an actual error message.
What does this say:
>> which -all image
You may have your own function called image.m. If you do, you should rename it because it's trying to use that instead of the built-in function.
Otherwise, you should call technical support. They are always willing to help you get a trial toolbox to work.
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!