InsightSoftwareConsortium / itkwidgets

An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
https://itkwidgets.readthedocs.io/
Apache License 2.0
580 stars 83 forks source link

2D viewer support #572

Closed fedorov closed 1 year ago

fedorov commented 1 year ago

I think it would be very helpful to have a widget that would support 2d view of the image + label overlay (ie an equivalent to 2d slice views in 3D Slicer). I think for many practical purposes of viewing image segmentation results, current 3d widget is not sufficient for evaluating the results.

Perhaps this is something that is already possible, but I could not find the answer in the documentation. I looked over the open issues and didn't find one that has a similar request. Sorry if I missed it.

PaulHax commented 1 year ago

There are some boxy buttons hidden away behind the "menu" button that change the "view mode."

image

Should also be able to control with Python.

viewer = view(image)
viewer.set_view_mode('ZPlane') # or 'XPlane' or 'YPlane' or 'Volume'
fedorov commented 1 year ago

Thank you for pointing this out - I missed that UI feature...