|
132 | 132 | "\n",
|
133 | 133 | "# dict of file name and corresponding urls\n",
|
134 | 134 | "url_dict = {\n",
|
135 |
| - " \"SimpleITK.jpg\": \"https://s3.amazonaws.com/simpleitk/public/notebooks/SHA512/f1b5ce1bf9d7ebc0bd66f1c3bc0f90d9e9798efc7d0c5ea7bebe0435f173355b27df632971d1771dc1fc3743c76753e6a28f6ed43c5531866bfa2b38f1b8fd46\", # noqa: E501\n", |
| 135 | + " \"monai.png\": \"https://github.com/Project-MONAI/project-monai.github.io/raw/master/assets/logo/MONAI-logo_color.png\", # noqa: E501\n", |
136 | 136 | " \"mri.nii\": \"https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/Prostate_T2W_AX_1.nii\"\n",
|
137 | 137 | "}\n",
|
138 | 138 | "\n",
|
|
243 | 243 | "# from ipywidgets import interact, fixed\n",
|
244 | 244 | "# interact(\n",
|
245 | 245 | "# transformation_display,\n",
|
246 |
| - "# img_path=fixed(f\"{root_dir}/SimpleITK.jpg\"),\n", |
| 246 | + "# img_path=fixed(f\"{root_dir}/monai.png\"),\n", |
247 | 247 | "# tx=(-128.0, 128.0, 2.0),\n",
|
248 | 248 | "# ty=(-64.0, 64.0),\n",
|
249 | 249 | "# theta=(-np.pi/4.0, np.pi/4.0)\n",
|
|
263 | 263 | "The following example randomly sample 10 physical points (locations) on an image and assign ascending displacements in y(H) direction accordingly.\n",
|
264 | 264 | "Resampled intensities obtained by both MONAI and SimpleITK implementations are reported at all 10 points.\n",
|
265 | 265 | "\n",
|
266 |
| - "First, 10 physical points are randomly sampled from the downloaded SimpleITK logo." |
| 266 | + "First, 10 physical points are randomly sampled from the downloaded logo." |
267 | 267 | ]
|
268 | 268 | },
|
269 | 269 | {
|
|
275 | 275 | "outputs": [],
|
276 | 276 | "source": [
|
277 | 277 | "# Read image\n",
|
278 |
| - "img_path = f\"{root_dir}/SimpleITK.jpg\"\n", |
| 278 | + "img_path = f\"{root_dir}/monai.png\"\n", |
279 | 279 | "monai_img = np.asarray(PIL.Image.open(img_path))\n",
|
280 | 280 | "monai_img = monai_img.transpose((2, 0, 1))\n",
|
281 | 281 | "monai_img = torch.tensor(monai_img, dtype=torch.float)\n",
|
|
0 commit comments