MCPcopy
hub / github.com/black0017/MedicalZooPytorch / show_slices

Function show_slices

lib/visual3D_temp/viz_2d.py:31–38  ·  view source on GitHub ↗

Function to display a row of image slices Input is a list of numpy 2D image slices

(slices)

Source from the content-addressed store, hash-verified

29
30
31def show_slices(slices):
32 """
33 Function to display a row of image slices
34 Input is a list of numpy 2D image slices
35 """
36 fig, axes = plt.subplots(1, len(slices))
37 for i, slice in enumerate(slices):
38 axes[i].imshow(slice.T, cmap="gray", origin="lower")
39
40
41# TODO test and add medical writer

Callers 1

show_mid_sliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected