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? " ] }, { diff --git a/5_Registration.ipynb b/5_Registration.ipynb index cab3503..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()))" ] }, { @@ -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?" 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')