필터

Python을 활용한 생의학 영상 분석

Stephen Bailey

Instructor

필터

필터링된 이미지 예시

Python을 활용한 생의학 영상 분석

선명화 필터를 이용한 컨볼루션

컨볼루션 예시

Python을 활용한 생의학 영상 분석

선명화 필터를 이용한 컨볼루션

컨볼루션 결과

Python을 활용한 생의학 영상 분석

By Michael Plotke - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=24288958

Python을 활용한 생의학 영상 분석

By Michael Plotke - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=24288958

Python을 활용한 생의학 영상 분석

이미지 컨볼루션

import imageio.v2 as imageio
import scipy.ndimage as ndi

im=imageio.imread('foot-xray.jpg')

weights = [[.11, .11, .11], [.11, .12, .11], [.11, .11, .11]]
im_filt = ndi.convolve(im, weights)
fig, axes = plt.subplots(2, 1)
axes[0].imshow(im, cmap='gray')
axes[1].imshow(im_filt,cmap='gray')
plt.imshow()

평활화된 발 X선

Python을 활용한 생의학 영상 분석

필터링 함수

scipy.ndimage.filters 포함 함수:

  • median_filter()
  • uniform_filter()
  • maximum_filter()
  • percentile_filter()
ndi.median_filter(im, size=10)

발 중앙값 필터

Python을 활용한 생의학 영상 분석

가우시안 필터링

1차원 가우시안 분포 가우시안 분포 1D

ndi.gaussian_filter(im, sigma=5)

sigma = 5에서의 블러

2차원 가우시안 분포 By Kghose at the English language Wikipedia, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=2550031

ndi.gaussian_filter(im, sigma=10)

sigma = 10에서의 블러

Python을 활용한 생의학 영상 분석

연습해 봅시다!

Python을 활용한 생의학 영상 분석

Preparing Video For Download...