Greetings!
Is the shift always in the same direction or is the direction random,
i.e. different for every slice/frame?
If you know the direction and the shift, why don't you just write a
simple macro that loops through all slices/frames:
// shifts successive slices to the left (increment one pixel)
for (i=2;i<=nSlices;i++) {
setSlice(i);
run("Translate...","x="+(1-i)+" y=0 interpolation=None");
}
exit();
//
HTH
Herbie
:::::::::::::::::::::::::::::::::::::::::::::
Am 01.08.25 um 00:47 schrieb AR.M. AlHinnawi:
Dear ImageJ
I have a stack of 304 frames. It appears that objects in every frame are
shifted by 1 px successively. I mean the objects in every two successive
frames are displaced by 1px increment. Therefore, using 'transform ->
translate' is not practical since I have to correct the displacement in
each frame separately.
Is there a solution/micro that automatically adds a successive translate
increment to all frames? I mean, it seems that I need a loop (304
iterations) and do the job frame-by-frame automatically, can anyone help?
Thank you so much.
*Abdel-Razzak Al-Hinnawi, (Associate Prof.) (B.Sc., M.Sc., Ph.D. Medical
Imaging Sciences & Digital Image Processing & Biomedical Engineering)*
*Faculty of Allied Medical Sciences*
*ISRA University*
*11622, Amman, **JORDAN*
*phone: +962 780515199*
*e-mail: [email protected] <[email protected]>
[email protected] <[email protected]>*
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html