Login  Register

Re: Cyclic translation transform

Posted by Krs5 on Jul 09, 2015; 1:37pm
URL: http://imagej.273.s1.nabble.com/Cyclic-translation-transform-tp5013479p5013482.html

Dear Jerry,

Maybe the code below does what you want. Open your image and make an ROI of the area you want to translate.

waitForUser ("make selection");
getSelectionBounds(x, y, width, height);
run("Copy");
run("Select None");
run("Translate...", "x="+width+" y=0 interpolation=None");
makeRectangle(0, 0, width, height);
run("Paste");

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif



-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of jerry novakk
Sent: 09 July 2015 12:51
To: [hidden email]
Subject: Cyclic translation transform

Hi!

I am using transform function in imageJ 1.43U. As it turns out the translation in a chosen direction cuts out that part of the image which leaves the view window and fills the other side with white.
This means that I lose information that i still need.
I am trying to work out how to keep the sample symmetry like on the picture
below:

Jerry <http://imagej.1557.x6.nabble.com/file/n5013479/TRANS.png>

Does anyone know if this can be fixed or if any adequate plugin exists?

Thank you,
Jerry



--
View this message in context: http://imagej.1557.x6.nabble.com/Cyclic-translation-transform-tp5013479.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html