필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

creating a dragable box

조회 수: 1 (최근 30일)
hasan alhussaini
hasan alhussaini 2018년 6월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello, i'm trying to create a drag able box in one image, and use the [xmin ymin width height] of the box that i created as the new image.
i have the following code.
imshow(image_one)
rect = getPosition(rectHandle);
y=rect(1);
x=rect(2);
ny=rect(3);
nx=rect(4);
i want to make the y,x,ny,nx my new image for image one.
the whole purpose of this is because i'm trying to isolate a certain part of the image. and compare it using mean square error to compute the difference.
p.s i would like to do the same to image_two aswell because to compute the MSE, the two variables have to have the same dimensions. (it needs to be a drag-able box. because the area i'm isolating in image_two is in a different area of the image in comparison to image one. so i was thinking maybe i could drag the box over the area of interest)
  댓글 수: 2
Akira Agata
Akira Agata 2018년 6월 18일
How about trying an imrect function?
KSSV
KSSV 2018년 6월 18일
How about imcrop ?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by