본문 바로가기
  • Hello_
728x90
반응형

Python/Image processing3

[Python] 3D 배열 Resize하기 (skimage, scipy 활용) 본 포스팅은 3D 형태의 배열을 사이즈 변경할 수 있는 라이브러리를 활용하여 각각 비교를 해볼 예정이다. cv2 활용 불가한 경우 보통 2D 이미지의 크기를 변경할 때는 cv2를 많이 사용하지만 3D 형태의 이미지는 cv2를 활용할 수 없다. 물론 for loop을 활용하여 슬라이스 별로 하는 방법이 있지만 for loop의 기준이 되는 축의 크기는 변경할 수 없기 때문에 다른 라이브러리를 활용해야 한다. 3D 이미지 크기 변환은 크게 skimage 라이브러리의 resize와 scipy의 zoom을 사용할 수 있다. skimage.transform.resize skimage.transform.resize는 이미지 크기를 조정하는 데 사용하며 이미지와 원하는 출력 크기를 입력하면 크기가 조정된 배열을 반환.. 2023. 1. 10.
[Python] Image filtering - 영상처리에 대해 오늘은 영상처리의 기본 개념 및 필터에 대해 포스팅하겠다. Scipy에서 제공하는 라이브러를 사용하여 구현하겠다. Filter • Heart of image enhancement • Remove noise or undesirable impurities • The first derivative and second derivative filters are used to determine edges in an image • Linear filter – Mean, Laplacian and Laplacian of Gaussian • Non-linear filter – median, maximum, minimum, Sobel, Prewitt, Canny filter Image Enhancement • Be acco.. 2022. 9. 26.
[Python] Morophological 구현 (모폴로지 연산 그림으로 설명) 오늘은 영상처리에서 자주 사용되는 모폴리지 처리에 대해 포스팅하겠다. 구현은 scipy 라이브러리의 ndimage 함수를 사용했다. Morphological Operations • An important part of image analysis involves understanding the shape of the objects in that image through morphological operations • Morphology means form or structure • The goal is to transform the structure or form of the objects using a structuring element • Morphological operations can be app.. 2022. 8. 30.
728x90
반응형