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%.