简体   繁体   中英

opencv2: bicubic interpolation while resizing image

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?

img = cv2.imread('source to image here')
img_resized = cv2.resize(img, fx=scale_y, 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM