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

Label image volume is not visible outside of intensity image bounds in view #662

Open
tbirdso opened this issue May 23, 2023 · 2 comments
Open
Assignees

Comments

@tbirdso
Copy link

tbirdso commented May 23, 2023

Overview

When viewing two binary images with view(image1, label_image=image2), only the first image volume is displayed. The second image volume can be inferred as intersections on the label surface.

itkwidgets-boundary-contour

Expected Behavior

Two volumes of different colors are visible in the scene.

Observed Behavior

One volume is visible as a 3D boundary. The intersection of the other volume is implied as discoloration on the first volume surface.

Minimum Reproducible Example

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

arr2 = np.zeros([25,25,25], dtype=np.uint8)
arr2[:20,:5,:5] = 1
image2 = itk.image_view_from_array(arr2)

itkwidgets.view(image1, label_image=image2)

Intersection in red:

min-example

cc @PaulHax

@thewtex
Copy link
Member

thewtex commented May 26, 2023

In this case the bounding box visualization would be helpful.

@ManooshSamiei
Copy link

In itk 5.3.0 this intersection for label image is not shown at all. Do you have any suggestions?

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

4 participants