Problem regarding the input parameters for 'imrect'

I am using the command 'imrect' in my program... The following is the example which I referred from mathworks.
figure, imshow('pout.tif');
h = imrect;
position = wait(h);
Similar to the above code, mine goes something like this:
[q,r,z]=size(s);
h = imrect;
position = wait(h);
where 's' corresponds to my image.
My problem is when I first run the code on R2007b, there was no error. But now when I run it, it asks for input parameters for imrect. Even the code given as an example is not working. Is there a problem with the code or the matlab version? Can anybody help me with this?

댓글 수: 2

Nagaveni - please post the full error message and code that is leading to this error. I notice that you haven't called imshow(s) for your image. Have you called that code and just not copied it here?
Nagaveni S A
Nagaveni S A 2015년 3월 16일
편집: Nagaveni S A 2015년 3월 16일
Sorry for replying so late. I have no errors now. I ran the same program in Matlab R2013a version and it did not show any errors. I guess maybe the problem was the matlab version. But thanks anyway for you answer.
I do have another question: http://www.mathworks.com/matlabcentral/answers/183333-steganography-hiding-and-extracting-text-in-image Could you please take a look at it? Thank you again.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2014년 11월 16일

편집:

2015년 3월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by