kbressem / faimed3d

Extension to fastai for volumetric medical data
MIT License
32 stars 14 forks source link

Viewer widget #55

Closed kbressem closed 3 years ago

kbressem commented 3 years ago

Implementing a simple DICOM viewer as iPython Widget.

Mentioned in #20

Motivation

Currently, the 3D volumes were displayed as multiple tiles in a mosaic style. But this is not how a radiologist looks at images. Instead, radiologists view images as a scrollable stack of 2D slices.

Solution

iPywidgets allows rendering one stack of image slices into a scrollable widget.

image

With the left lower slider, one can scroll through the image stack; with the upper slider, it is possible to apply windowing to the images. If a segmentation mask is passed together with the image, it can be overlayed to the image. With the lower right button, the mask overlay can be toggled on or off.

This simple DICOM viewer is now used as a replacement for the show_batch_3d function.

Additionally, another viewer version gives more details on the pixel/voxel distribution in the image. This could be useful for visualizing DICOM images while preprocessing (normalizing, bias correction).

image

Files changed

review-notebook-app[bot] commented 3 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

jlvahldiek commented 3 years ago

Consider to change 'continuous_update' of the range_slider of DicomExplorer to 'False' because otherwise UI seems to be laggy and changes are visualized very slow.