I am trying to write a macro to crop a bunch of images. The images are registered so I want to specify the crop region for the first image and then apply for the rest.
Can someone tell me how can I save the coordinates of the selection? For example if I make a rectangle
makeRectangle(406, 780, 1092, 510);
how can I return the coordinates [406, 780, 1092, 510] into a variable?