1 | initial version |
then simply use cv::resize() , not pyrUp, or pyrDown (which are restricted to 50% size factor)
Mat src = ...
Mat dst;
resize(src,dst,Size(), 1.25, 1.25); // up
resize(src,dst,Size(), 0.75, 0.75); // down
2 | No.2 Revision |
then simply use cv::resize() , not pyrUp, or pyrDown (which are restricted to 50% size factor)
Mat src = ...
Mat dst;
resize(src,dst,Size(), 1.25, 1.25); 1.25, cv::INTER_CUBBIC); // up
resize(src,dst,Size(), 0.75, 0.75); 0.75, cv::INTER_AREA); // down
3 | No.3 Revision |
then simply use cv::resize() , not pyrUp, or pyrDown (which are restricted to 50% size factor)
Mat src dst = ...
Mat dst;
resize(src,dst,Size(), cv2.resize(src, None, 1.25, 1.25, cv::INTER_CUBBIC); // cv2.INTER_CUBBIC) # up
resize(src,dst,Size(), dst = cv2.resize(src, None, 0.75, 0.75, cv::INTER_AREA); // cv2.INTER_AREA) # down