Reputation: 7143
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?
Upvotes: 7
Views: 27648
Reputation: 650
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
Upvotes: 10