rotation-Bicubic resampling -using OpenCV python
Hey !
I am trying to rotate an image using
cv2.getRotationMatrix2D(center, angle, scale) .
dst = cv2.warpAffine(img,M,(cols,rows))
how do I manipulate the interpolation method? I would like to use bicubic method .
Thanks
check cv.WarpAffine. you can set interpolation flag to INTER_CUBIC
I get the following error
ModuleNotFoundError: No module named 'cv'
I have tried to use all possible installation methods to install 'cv' . cv2 works fine but not cv :(
Using cv2.INTER_CUBIC, the flags work . cv.warpaffine does not work even using import cv2.cv as cv .