Issue related to imshow command
2 views (last 30 days)
Show older comments
I am using 'imshow' command in my code. Till yesterday my code was running properly, but from today i am getting error as shown below * * *
"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,...
Error in Untitled2 (line 19)
imshow(thisFrame);* *
* "
2 Comments
Accepted Answer
Image Analyst
on 9 Nov 2014
Do this on the command line
which -all image
and tell us what it says. You should see this:
>> which -all image
built-in (C:\Program Files\MATLAB\R2014b\toolbox\matlab\specgraph\image)
3 Comments
Guillaume
on 9 Nov 2014
Edited: Guillaume
on 9 Nov 2014
Well, there is your problem. matlab's built-in function image.m is shadowed by your C:\Users\Admin\Documents\MATLAB\image.m
Rename that function to something else that is not the name of a matlab built-in function and you'll be fine.
Do not use image as a name for anything.
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!