7

I would like to do image resizing using the app cv2.resize. I would like to do bicubic interpolation while resizing. How would I do it?

1 Answer 1

10
img = cv2.imread('source to image here')
img_resized = cv2.resize(img, fx=scale_x, fy=scale_y, interpolation=cv2.INTER_CUBIC)

I haven't tested it out. Check http://docs.opencv.org/modules/imgproc/doc/geometric_transformations.html#resize for more details

1
  • 2
    that's probably cv2.INTER_CUBIC
    – berak
    Sep 22, 2014 at 14:15

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.