Skip to content

Commit

Permalink
solve spellcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocagnetta committed Mar 19, 2024
1 parent d58f5e6 commit 0bc4be7
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions docs/02_notebooks/L3_slicing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The output of the resampler is a 3D image, which we can convert to a numpy array and visualize. We can check that the value range corresponds to that of the labelmap. We can also save the image has a .nii file for further visualization on a volume renderer."
"The output of the resampler is a 3D image, which we can convert to a numpy array and visualize. We can check that the value range corresponds to that of the labelmap."
]
},
{
Expand All @@ -226,12 +226,22 @@
"sliced_img_size = sliced_img.shape\n",
"\n",
"print(f\"Slice value range: {np.min(sliced_img)} - {np.max(sliced_img)}\")\n",
"print(f\" {sliced_volume_size=},\\n {volume_size=},\\n {sliced_img_size=},\\n {img_size=}\")\n",
"\n",
"output_path = os.path.join(\"../..\", \"data\", \"outputs\", \"sliced_volume.nii.gz\")\n",
"sitk.WriteImage(sliced_volume, output_path)"
"print(f\" {sliced_volume_size=},\\n {volume_size=},\\n {sliced_img_size=},\\n {img_size=}\")"
]
},
{
"cell_type": "markdown",
"source": [
"It is also possible to save the image has a .nii file for further visualization on a volume renderer. you can do this locally as follows:\n",
"```python\n",
"output_path = os.path.join(\"../..\", \"data\", \"outputs\", \"sliced_volume.nii.gz\")\n",
"sitk.WriteImage(sliced_volume, output_path)\n",
"```"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 0bc4be7

Please sign in to comment.