imshow

조회 수: 15 (최근 30일)
Mi Sl
Mi Sl 2011년 4월 25일
이동: DGM 2023년 5월 7일
hi, I havea series of jpeg images that I am trying to enter and view in matlab (eventually, I would love to try to tile them). I am using he imread function to load. the imshow function is not working. I am getting the following error
Error in ==> basicImageDisplay at 9 hh = image(xdata,ydata,cdata, ...
Error in ==> imshow at 246 hh = basicImageDisplay(fig_handle,ax_handle,...
I tried the following: - changing rgb to gray scale to reduce the dimesnions of the matric - renaming the m file - reducing the size of the file/image i am importing. I ended up with a 600x800 pixel image. is that still too big?
Any comment on the above would be appreciated. thanks m
  댓글 수: 2
Andrew Newell
Andrew Newell 2011년 4월 25일
You give the start of each error message, but not the most important part - what the error is. Could you please include the rest of the message?
Matt Fig
Matt Fig 2011년 4월 25일
Also, how is IMSHOW being called? Give the calling syntax, and a description of each argument...

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

채택된 답변

Walter Roberson
Walter Roberson 2011년 4월 26일
Here is one person's resolution of this problem:
  댓글 수: 2
diksha
diksha 2014년 2월 26일
plz help me , plz give me also this problem's solution. i also face this problem.
Walter Roberson
Walter Roberson 2014년 2월 26일
You probably have your own routine image.m on your MATLAB path. You need to get rid of your personal image.m
Use
which -all image.m
to see which image() is being invoked.

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 4월 25일
Based upon your concerns about reducing sizes, the error message you are getting may be one about running out of memory. If that is happening for an image as small as 600x800 then you likely have your own routine named "image" on your path.
which -all image
The same kind of problem could also trigger messages about indexes out of range.
  댓글 수: 2
Mi Sl
Mi Sl 2011년 4월 26일
이동: DGM 2023년 5월 7일
Thanks gentlemen for your replies.
the script I am writing is really simple:
img1=imread('test.jpg'); % reading the image file which is a grid % of squares
img1grey=rgb2gray(img1); % changing to gray scale
img1grey=double(img1grey);
figure(1)
imshow(img1grey;
the errors I am getting are:
??? Attempt to call constructor image with incorrect letter case.
Error in ==> basicImageDisplay at 9
hh = image(xdata,ydata,cdata, ...
Error in ==> imshow at 246
hh = basicImageDisplay(fig_handle,ax_handle,...
thanks
m
Mi Sl
Mi Sl 2011년 4월 26일
이동: DGM 2023년 5월 7일
Thanks Walter. I have seen this as a suggested solution somewhere else as well. I tried to rename my m file and the matrices containing the image data...without luck.

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

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by