How to move part of Image by macro
Posted by Peter van Loon on Aug 28, 2013; 9:14pm
URL: http://imagej.273.s1.nabble.com/How-to-move-part-of-Image-by-macro-tp5004599.html
Hi,
When I want to copy part of an Image it can be done by a Copy and Paste command and the moving the selection by mouse. If I record this and apply this in macro then it fails.
This is the recording:
makeRectangle(221, 394, 39, 36);
run("Copy");
run("Copy");
run("Paste");
makeRectangle(343, 394, 39, 36);
run("Copy");
Strange enough a run("Copy"); command is added after every rectangular selection I make by mouse.
If I omit these 2 extra run("Copy"); commands, the results is the same.
Can anybody tell me how I can do this by macro?
Regards,
Peter