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

How to adjust the Z-axis spacing? #6822

Open
duxuan11 opened this issue Apr 9, 2024 · 1 comment
Open

How to adjust the Z-axis spacing? #6822

duxuan11 opened this issue Apr 9, 2024 · 1 comment
Labels
feature New feature or request

Comments

@duxuan11
Copy link

duxuan11 commented Apr 9, 2024

The input data 3d volume, but its Z-axis height seems to be equal to the number of images, rather than the real Z-axis maximum and minimum values, may I ask where can I input Z-axis data in order to look more accurate in 3d visualization.
image
I know that in imagej it has max and min representing the range of the z axis.

@duxuan11 duxuan11 added the feature New feature or request label Apr 9, 2024
@psobolewskiPhD
Copy link
Member

Are you trying to set the scale of the stack?
The attached image is really hard to decipher, but:
If you have 52 inches over 62 slices, then you have .839 in/slice.
In napari you can set the scale of a layer using:
viewer.layer['name of your layer'].scale = [.838, 1, 1]
Here I set the z-scaling based on your post, while x and y are left as 1, so 1 in per pixel.

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

No branches or pull requests

2 participants