Is it possible to control where a pasted image is located in a new image? Currently it always locates to the centre of the image, but can it be accurately positioned elsewhere through a macro, such as at 0,0?
Any help is welcomed. With regards, Andrew |
If you place the ROI before you paste, then the location can be set.
Draw the ROI and copy it in the first image. Restore the ROI in the new image, drag it to where you want the paste, then paste. Cheers, Michael -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of AJBell Sent: Monday, April 18, 2011 12:04 PM To: [hidden email] Subject: Control of paste function Is it possible to control where a pasted image is located in a new image? Currently it always locates to the centre of the image, but can it be accurately positioned elsewhere through a macro, such as at 0,0? Any help is welcomed. With regards, Andrew -- View this message in context: http://imagej.588099.n2.nabble.com/Control-of-paste-function-tp6284191p6284191.html Sent from the ImageJ mailing list archive at Nabble.com. ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. ================================= |
Thank you for the reply, but I should have been clearer; I know I can drag it around, but I would like to put it into a macro - i am trying to create a gallery of ROI.
|
On Monday 18 Apr 2011, AJBell wrote:
> Thank you for the reply, but I should have been clearer; I know I can drag > it around, but I would like to put it into a macro - i am trying to create > a gallery of ROI. run("Boats (356K)"); makeRectangle(507, 219, 151, 127); run("Copy"); makeRectangle(0, 0, 151, 127); run("Paste"); |
Ah, simple!
Many thanks.
|
Free forum by Nabble | Edit this page |