Re: rotate stack around point
Posted by radioradio on
URL: http://imagej.273.s1.nabble.com/rotate-stack-around-point-tp3682956p3682960.html
Wow! Excellent idea! I started with your macro and ended up like this:
// translate stack or slice to center on point pox,poy, create centered stack, then jump to slice no. poz
getSelectionCoordinates(pox, poy);
poz = getSliceNumber();
width = getWidth();
height = getHeight();
NumberOfSlices = nSlices;
translx = (width/2 - pox [0]);
transly = (height/2 - poy [0]);
run("Duplicate...", "title=centered duplicate range=1-nSlices");
run("Translate...", "x=translx y=transly interpolation=None stack");
setSlice(poz);
makePoint(getWidth() / 2, getHeight() / 2);
now i would like to reorient my centered stack around this point along a line between two given xyz-points. in Reorient3 TP i tried to import three "pick points" into the results table and use them, but the plugin still tells me to pick 3 points first :(( any ideas?