Filter convolutions
Filters are an essential tool in image processing. They allow you to transform images based on intensity values surrounding a pixel, rather than globally.
For this exercise, smooth the foot radiograph. First, specify the weights to be used. (These are called "footprints" and "kernels" as well.) Then, convolve the filter with im and plot the result.
Bu egzersiz, kursun bir parçasıdır
Biomedical Image Analysis in Python
Uygulamalı etkileşimli egzersiz
Bu egzersizi bu örnek kodu tamamlayarak deneyin.
# Set filter weights
weights = [[0.11, 0.11, ____],
[0.11, ____, 0.11],
____]