imresize error using OpenCV 2.4.10 and Python 2.7.10 -
i'm trying resize image opencv 2.4.10 , python 2.7.10.
this works:
resized_patch = cv2.resize(patch, (3, 50, 50))
however, i'm interested in using inter_area interpolation. following documentation python, tried:
dst = numpy.zeros((3, 50, 50)) resized_patch = cv2.resize(patch, (3, 50, 50), dst=dst, fx=0, fy=0, interpolation=cv2.inter_area)
however, error i'm getting cv2.resize line is:
typeerror: 'function takes 2 arguments (3 given)'
any clues?
you need use 2d size dst.size()
not 3d :
resized_patch = cv2.resize(patch, (3, 50, 50), dst=dst, fx=0, fy=0, interpolation=cv2.inter_area) ^^^ #here
Comments
Post a Comment