Skip to content

Instantly share code, notes, and snippets.

@dscho dscho/gist:4566069

Created Jan 18, 2013
What would you like to do?
image = IJ.getImage();
ip = image.getProcessor();
ip = ip.duplicate();
dx = +10;
dy = -21;
ip.translate(dx, dy);
new ImagePlus("translated " + dx + ", " + dy, ip).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.