http://tanbakuchi.com/posts/comparison-of-openv-interpolation-algorithms/



interpolation 알고리즘 목록은 다음과 같다


  • INTER_NEAREST - a nearest-neighbor interpolation
  • INTER_LINEAR - a bilinear interpolation (used by default)
  • INTER_AREA - resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire’-free results. But when the image is zoomed, it is similar to the INTER_NEAREST method.
  • INTER_CUBIC - a bicubic interpolation over 4x4 pixel neighborhood
  • INTER_LANCZOS4 - a Lanczos interpolation over 8x8 pixel neighborhood



결과 이미지는 원문링크에 가면 있고, 정리만 여기에 기입하도록 하겠음


업샘플링

50x50 이미지를 400x400으로 업샘플링

area, nearest 알고리즘은 계단현상이 발생하였고 linear는 부드러운 엣지 그리고 cubic과 Lanczos 는 샤프한 엣지를 만들었다고함


다운샘플링

400x400 이미지를 50x50으로 다운샘플링

area 알고리즘이 앨리어싱 현상이 없다 

+ Recent posts