Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course update #36

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2_Image_Filtering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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? "
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 5_Registration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()))"
]
},
{
Expand Down Expand Up @@ -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?"
Expand Down
7 changes: 7 additions & 0 deletions solutions/4_ITK_and_NumPy_answers_Exercise1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')