Skip to content

Commit

Permalink
fix: Address typos in bilinear mode usage in Spacingd operator (#271)
Browse files Browse the repository at this point in the history
Signed-off-by: Erik <erik.ziegler@radicalimaging.com>

Co-authored-by: Erik <erik.ziegler@radicalimaging.com>
  • Loading branch information
swederik and Erik committed Feb 25, 2022
1 parent 1f53b26 commit 0fa444c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/apps/ai_spleen_seg_app/spleen_seg_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def pre_process(self, img_reader) -> Compose:
[
LoadImaged(keys=my_key, reader=img_reader),
EnsureChannelFirstd(keys=my_key),
Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=["blinear"], align_corners=True),
Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=["bilinear"], align_corners=True),
ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),
CropForegroundd(keys=my_key, source_key=my_key),
ToTensord(keys=my_key),
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/03_segmentation_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@
" [\n",
" LoadImaged(keys=my_key, reader=img_reader),\n",
" EnsureChannelFirstd(keys=my_key),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"blinear\"], align_corners=True),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"bilinear\"], align_corners=True),\n",
" ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),\n",
" CropForegroundd(keys=my_key, source_key=my_key),\n",
" ToTensord(keys=my_key),\n",
Expand Down Expand Up @@ -1120,7 +1120,7 @@
" [\n",
" LoadImaged(keys=my_key, reader=img_reader),\n",
" EnsureChannelFirstd(keys=my_key),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"blinear\"], align_corners=True),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"bilinear\"], align_corners=True),\n",
" ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),\n",
" CropForegroundd(keys=my_key, source_key=my_key),\n",
" ToTensord(keys=my_key),\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/03_segmentation_viz_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@
" [\n",
" LoadImaged(keys=my_key, reader=img_reader),\n",
" EnsureChannelFirstd(keys=my_key),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"blinear\"], align_corners=True),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"bilinear\"], align_corners=True),\n",
" ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),\n",
" CropForegroundd(keys=my_key, source_key=my_key),\n",
" ToTensord(keys=my_key),\n",
Expand Down Expand Up @@ -1147,7 +1147,7 @@
" [\n",
" LoadImaged(keys=my_key, reader=img_reader),\n",
" EnsureChannelFirstd(keys=my_key),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"blinear\"], align_corners=True),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"bilinear\"], align_corners=True),\n",
" ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),\n",
" CropForegroundd(keys=my_key, source_key=my_key),\n",
" ToTensord(keys=my_key),\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/05_full_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@
" [\n",
" LoadImaged(keys=my_key, reader=img_reader),\n",
" EnsureChannelFirstd(keys=my_key),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"blinear\"], align_corners=True),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"bilinear\"], align_corners=True),\n",
" ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),\n",
" CropForegroundd(keys=my_key, source_key=my_key),\n",
" ToTensord(keys=my_key),\n",
Expand Down Expand Up @@ -1068,7 +1068,7 @@
" [\n",
" LoadImaged(keys=my_key, reader=img_reader),\n",
" EnsureChannelFirstd(keys=my_key),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"blinear\"], align_corners=True),\n",
" Spacingd(keys=my_key, pixdim=[1.0, 1.0, 1.0], mode=[\"bilinear\"], align_corners=True),\n",
" ScaleIntensityRanged(keys=my_key, a_min=-57, a_max=164, b_min=0.0, b_max=1.0, clip=True),\n",
" CropForegroundd(keys=my_key, source_key=my_key),\n",
" ToTensord(keys=my_key),\n",
Expand Down

0 comments on commit 0fa444c

Please sign in to comment.