Digital-Image-Processing

이주현·2024년 7월 16일

Digital Image Processing

목록 보기
1/2
post-thumbnail

곤잘레스 Digital Image Processing
예제 python으로 적용해보기

※ 모듈 PIL, numpy, matplotlib.pyplot
pyplot

  • 이미지 띄우면 크기 바껴서 나옴. 보간법 등으로 픽셀 달라지고, plt.imshow(img)할때 cmap (컬러맵), vmin과 vmax 설정 필요.
  • 그레이스케일 이미지에 'gray' 컬러맵 설정.
  • vmin과 vmax 설정 안하면 컨트라스트 스트레칭되서 띄어짐.
  • 따라서 히스토그램 그릴때만 사용. (이미지는 PIL로 띄움)
profile
까먹고.. 또 까먹고... 휴..

0개의 댓글