InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

Images with near-zero values do not appear

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

Description

If an image has only small (near zero) intensity values, it is not rendered in 3D, but its 2D slices render correctly.

If the intensities are "large", itkWidgets.view() correctly shows an image
![Works](https://user-images.githubusercontent.com/279727/141865525-490d1142-2902-47fd-b3c6-dc82071f2d11.jpg)

However, simply scaling that data to be near zero and again view-ing the results displays a blank 3D rendering
![DoesntWork](https://user-images.githubusercontent.com/279727/141865655-74d51a34-7eaa-4a23-8c7e-f603ba478371.jpg)

But the 2D rendering of the rescaled data does work as expected
![Works2D](https://user-images.githubusercontent.com/279727/141865776-7475abc8-f3a8-4755-969f-6ed2e75ec852.jpg)

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.