Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransformJ rotate uses incorrect voxel size #1

Closed
ctrueden opened this issue Jun 16, 2014 · 1 comment
Closed

TransformJ rotate uses incorrect voxel size #1

ctrueden opened this issue Jun 16, 2014 · 1 comment

Comments

@ctrueden
Copy link
Contributor

Reported by Laurent Holtzer:

This is a follow-up on my post to the imagej mailing list, since I believe it is a real bug in Fiji.

When using TransformJ rotate on a stack which has non-cubical voxels (in my case the distance between planes in z is more than 5x the pixel length in x or y) the plugin assumes that voxels are cubical, so x, y, and z size are the same.

This can be reproduced using for example the 'first-instar-brain.tif' sample shipped with Fiji. When I run TransformJ rotate on this file and set a rotation around y of 90 degrees, the voxel size remains unchanged and Fiji reports a width of 29.96 microns for the images in the stack. Since the original stack is composed of 56 planes with 2 micron inbetween them, this can not be true. TransformJ Turn does it correctly, and after turning the stack 90 degrees in y Fiji reports a width of 112 microns, and also a correct voxel size.

Migrated-From: http://fiji.sc/bugzilla/show_bug.cgi?id=674

@emeijering
Copy link
Contributor

This is not a bug but a "feature" (although perhaps an inconvenient one). The TransformJ Rotate plugin simply assumes that voxels are isotropic. If they are not, one can use the TransformJ Affine plugin, which also allows scaling at the same time, to get a correctly rotated volume with isotropic voxels. In a future release I will try to deal with nonisotropic voxels in the TransformJ Rotate plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants