image processing toolbox:imshow problem

hi .. i have a problem with Image Processing Toolbox , i appreciate you help , if you can help me i want to an image with MATLAB 7.7.0(R2008b) "imread" work correctely but when i use "imshow" i always get the same error :
??? Attempt to call constructor image with incorrect letter case.
Error in ==> basicImageDisplay at 9
hh = image(xdata,ydata,cdata, ...
Error in ==> imshow at 249
hh = basicImageDisplay(fig_handle,ax_handle,...
please help me

답변 (2개)

Sean de Wolski
Sean de Wolski 2013년 2월 14일

0 개 추천

What is the output of:
which -all image
My guess is this will give you a major hint.
If it doesn't, how are you calling imshow()?

댓글 수: 5

sabrina
sabrina 2013년 2월 14일
이동: DGM 2023년 12월 29일
which -all image gave : C:\Users\hp\Documents\MATLAB\image.m
built-in (C:\Program Files\MATLAB\R2008b\toolbox\matlab\specgraph\image) % Shadowed
and about call of "imshow"
a = imread('foto' , 'JPEG');
figure; imshow ( a)
that's it
Sean de Wolski
Sean de Wolski 2013년 2월 14일
이동: DGM 2023년 12월 29일
So that's the problem.
C:\Users\hp\Documents\MATLAB\image.m
Is shadowing the builtin image. So change the name of that file to something else.
sabrina
sabrina 2013년 2월 14일
이동: DGM 2023년 12월 29일
i don't know , i try to rename the file , still the same error shos up :/ :/
Sean de Wolski
Sean de Wolski 2013년 2월 14일
이동: DGM 2023년 12월 29일
rerun:
which -all image
There should be just one result:
Image Analyst
Image Analyst 2013년 2월 14일
이동: DGM 2023년 12월 29일
What do you mean "try" to rename? Were you able to rename it or not?

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

Image Analyst
Image Analyst 2013년 2월 14일

0 개 추천

Apparently you have your own custom version of image() in C:\Users\hp\Documents\MATLAB\image.m. Why do you have this? If you don't know why, then delete it or rename it image_custom.m. Then try imshow again.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2013년 2월 14일

이동:

DGM
2023년 12월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by