Skip to content

Commit

Permalink
changed test image in visualize
Browse files Browse the repository at this point in the history
  • Loading branch information
bmandracchia committed Aug 28, 2024
1 parent edada14 commit 817b314
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 34 deletions.
4 changes: 2 additions & 2 deletions bioMONAI/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def show_images_grid(images, ax=None, ncols=10, figsize=None, title=None, spacin

return ax

# %% ../nbs/09_visualize.ipynb 10
# %% ../nbs/09_visualize.ipynb 11
def show_plane(ax, plane, cmap="gray", title=None, lines=None, linestyle='--', linecolor='white'):
"""
Display a slice of the image tensor on a given axis with optional dashed lines.
Expand All @@ -175,7 +175,7 @@ def show_plane(ax, plane, cmap="gray", title=None, lines=None, linestyle='--', l
ax.axvline(lines[1], color=linecolor, linestyle=linestyle)


# %% ../nbs/09_visualize.ipynb 11
# %% ../nbs/09_visualize.ipynb 12
def visualize_slices(data, planes=None, showlines=True, **kwargs):
"""
Visualize slices of a 3D image tensor along its planes, rows, and columns.
Expand Down
60 changes: 28 additions & 32 deletions nbs/09_visualize.ipynb

Large diffs are not rendered by default.

0 comments on commit 817b314

Please sign in to comment.