InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

Boundary at lower image edge does not appear in 3D

Open
#663 1 comment 0 reactions 1 assignee Claimed by @bnmajor View on GitHub
Dominant language
Python
Stars
624
Forks
83
PR merge metrics
No merged PRs in 30d

Description

## Overview

An image region that extends to the border of the region is not rendered with a boundary at the image edge.

## Expected behavior

There is a visible border distinction in 3D volume rendering separating image contents from the background outside of the image.

## Observed behavior

No border is drawn at the lower edge of an image whose feature region extends to the lower bounds of the image.

## Minimum Reproducible Example

```py
arr1 = np.zeros([25,25,25], dtype=np.uint8)
arr1[:15,:25,:15] = 1
image1 = itk.image_view_from_array(arr1)

itkwidgets.view(image1)
```
![min-example-bounds](https://github.com/InsightSoftwareConsortium/itkwidgets/assets/40648863/f4934e5b-24cd-440f-a1df-a58b37419769)

## Platforms

itkwidgets 1.0a33
itk v5.3.0
Python 3.8 / JupyterLab 3.0.9 (CodeOcean)
Google Chrome
Windows 10

## Notes

Behavior may be due to default vtk-js handling of volume rendering at image bounds, uncertain whether there are parameters that could be tweaked to addressed.

cc @PaulHax

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.