oh, thanks, we will check and add the binding, but 1.8.1 is frozen now (compiling the debs rihght now...) so that will be for 1.8.2.
Now do not despair, jevois::rescaleCv() is only a trivial wrapper over cv::resize(), which just chooses a different interpolation method depending on whether we are upscaling or downscaling:
cv::Mat jevois::rescaleCv(cv::Mat const & img, cv::Size const & newdims)
{
cv::Mat scaled;
if (newdims.width == img.cols && newdims.height == img.rows)
scaled = img;
else if (newdims.width > img.cols || newdims.height > img.rows)
cv::resize(img, scaled, newdims, 0, 0, cv::INTER_LINEAR);
else
cv::resize(img, scaled, newdims, 0, 0, cv::INTER_AREA);
return scaled;
}
so, in Python, you should be able to just do something along the lines of:
res = cv2.resize(img, (2*width, 2*height), interpolation = cv.INTER_CUBIC)
(I got that example from https://docs.opencv.org/3.4.0/da/d6e/tutorial_py_geometric_transformations.html )