From 050b4a58729a04ba8d2d9f10069828f16ef26e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Tue, 22 Oct 2024 16:46:33 -0400 Subject: [PATCH 1/4] Update 4_ITK_and_NumPy_answers_Exercise1.py --- solutions/4_ITK_and_NumPy_answers_Exercise1.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solutions/4_ITK_and_NumPy_answers_Exercise1.py b/solutions/4_ITK_and_NumPy_answers_Exercise1.py index 1463f30..aad3f30 100644 --- a/solutions/4_ITK_and_NumPy_answers_Exercise1.py +++ b/solutions/4_ITK_and_NumPy_answers_Exercise1.py @@ -6,6 +6,13 @@ im=itk.imread('data/CBCT-TextureInput.png', itk.F) sobel=itk.sobel_edge_detection_image_filter(im) arr = itk.array_from_image(sobel) + +plt.subplot(1, 2, 1) +plt.gray() +plt.imshow(itk.array_view_from_image(im)) +plt.axis('off') + +plt.subplot(1, 2, 2) plt.gray() plt.imshow(arr) plt.axis('off') From a0cddc8553c1005558a6ca581ca1053717c4629f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Tue, 22 Oct 2024 14:19:24 -0400 Subject: [PATCH 2/4] Update 2_Image_Filtering.ipynb Fix broken doc links --- 2_Image_Filtering.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2_Image_Filtering.ipynb b/2_Image_Filtering.ipynb index 29e7721..eed35de 100644 --- a/2_Image_Filtering.ipynb +++ b/2_Image_Filtering.ipynb @@ -945,7 +945,7 @@ "source": [ "### Exercise 3: Find other image filtering algorithms\n", "\n", - "The classes in ITK are organized into **Modules**, and collections of Modules are organized into **Groups**. Examine the [Image Smoothing](https://itk.org/Insight/Doxygen/html/group__ITKSmoothing.html) Module and the [Filtering](https://itk.org/Insight/Doxygen/html/group__Group-Filtering.html) Group. Can any other smoothing or denoising classes be found? " + "The classes in ITK are organized into **Modules**, and collections of Modules are organized into **Groups**. Examine the [Image Smoothing](https://itk.org/Doxygen/html/group__ITKSmoothing.html) Module and the [Filtering](https://itk.org/Doxygen/html/group__Group-Filtering.html) Group. Can any other smoothing or denoising classes be found? " ] }, { From 66dd4f07ce5952c273044a5225ec9ca44b864106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Wed, 23 Oct 2024 14:37:57 -0400 Subject: [PATCH 3/4] Update 5_Registration.ipynb Metrics link updated --- 5_Registration.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5_Registration.ipynb b/5_Registration.ipynb index cab3503..6d2c63d 100644 --- a/5_Registration.ipynb +++ b/5_Registration.ipynb @@ -444,7 +444,7 @@ "source": [ "## Exercise 3: Image similarity matching metrics\n", "\n", - "Examine the available [registration framework image similarity matching metrics](https://itk.org/Doxygen/html/classitk_1_1ImageToImageMetricv4.html).\n", + "Examine the available [registration framework image similarity matching metrics](https://itk.org/Doxygen/html/group__RegistrationMetrics.html).\n", "\n", "- Can an alternative metric be used in the registration pipeline above?\n", "- Which metrics should be used for multi-modality registration?" From e25d179e263dc25a29b38f106329f0a8ec61c8b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Wed, 23 Oct 2024 14:40:07 -0400 Subject: [PATCH 4/4] Update 5_Registration.ipynb Show resampler output --- 5_Registration.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5_Registration.ipynb b/5_Registration.ipynb index 6d2c63d..4d66280 100644 --- a/5_Registration.ipynb +++ b/5_Registration.ipynb @@ -367,7 +367,7 @@ "\n", "resampler.Update()\n", "\n", - "plt.imshow(itk.array_view_from_image(movingImage))" + "plt.imshow(itk.array_view_from_image(resampler.GetOutput()))" ] }, {