This question is closed. Reopen it to edit or answer.

creating a dragable box

1 view (last 30 days)
hasan alhussaini
hasan alhussaini on 14 Jun 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
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.
rect = getPosition(rectHandle);
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)
KSSV on 18 Jun 2018
How about imcrop ?

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by