Opencv2: bicubic interpolation on image resizing

I would like to do image resizing using an application cv2.resize

. I would like to do bicubic interpolation on resize. How should I do it?

+3


source to share


1 answer


img = cv2.imread('source to image here')
cv2.resize(img,fx=scaleX,fy=scaleY, interpolation = cv2.INTER_CUBIC)

      



I have not tested this. More on http://docs.opencv.org/modules/imgproc/doc/geometric_transformations.html#resize

+2


source







All Articles