InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

Position in z-axis is weirdly off

Open
#410 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
624
Forks
83
PR merge metrics
No merged PRs in 30d

Description

I have a .nii image I created from an itk.Image, with identity coordinate tranformations (i.e. identity direction, 0 origin, 1 spacing). When itkwidgets is set to z-plane view, it reports the wrong physical coordinate for the z dimension. See below. The -9.4 should be 0. Also, it doesn't seem to be isotropic spacing, if I move the axis slider it has different values and eventually gets it almost right on the last slices.

https://github.com/brad-t-moore/PublicExamples/blob/b5f4a4ff401c3ea1f919b82edae547744cb59bb3/ITKWidgetsBug.ipynb
![image](https://user-images.githubusercontent.com/59569148/113911848-74836480-97a8-11eb-8bcc-d360d4eade09.png)

Example is here: https://github.com/brad-t-moore/PublicExamples/blob/b5f4a4ff401c3ea1f919b82edae547744cb59bb3/ITKWidgetsBug.ipynb

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.