필터 지우기
필터 지우기

keeping certain imrect properties fixed

조회 수: 1 (최근 30일)
Allen Kelly
Allen Kelly 2014년 12월 10일
Hi guys,
I have a program where i'm using imrect to define a region of interest that's plotted as a line graph, with each point on the line representing the image averaged along the X-axis. Therefore, the imrect width determines the region of the image that is averaged to create the line plot.
Its straightforward enough to allow the user to input the values of the image into text boxes to update the position of imrect, but I also want the user to be able to manually manipulate the imrect object.
I can do this to an extent but there are 2 features of the imrect object I want to keep fixed: 1) Height of the rectangle. 2) Width cannot be less than 1
I'm assuming I can do this with "addNewPositionCallback" but i'm not sure how.
Any help would be greatly appreciated, thanks guys
Cheers,
Allen

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by