getrect Problem - incorrectly enforcing square
조회 수: 9 (최근 30일)
이전 댓글 표시
getrect help specifies that the rectangle will be forced to be a square if shift is pressed with the mouse click or if the right button is pressed.
However I have some code that involves the user selecting several rectangles in succession and even though I only use the left mouse button without hitting shift, the rectangle is sometimes forced to be a square. There seems no pattern I have spotted to when it will be forced to be a square, but happens around 30%-50% of the time.
Is there some other way of enforcing getrect to use a square that I could be doing by mistake, or could this be a bug? Has anyone else experienced this?
I am using matlab R2011b and image processing toolbox 7.3.
댓글 수: 0
답변 (1개)
Image Analyst
2011년 11월 25일
I'm not sure - I don't use that. Didn't even know it existed. I usually use rbbox. You could also use imrect. Try one of those alternatives.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!