Custom size pyramidup and pyramiddown in python?
I have found C++ pyrUp and pyrDown functions which accepts the custom size i.e.
`pyrUp( tmp, dst, Size( tmp.cols*2, tmp.rows*2 )`
I need a similar python function where I can specify the size of downscaled or upscaled image as I want to down scale 75% while the default function does 50% and I want to upscale by 25% instead of 50%.
Edit: Can we do 3/4 subsampling/upsampling by using the following function.....
cv2.pyrUp(src[, dst[, dstsize[, borderType]]]) → dst
cv2.pyrDown(src[, dst[, dstsize[, borderType]]]) → dst