Starting from an image, I would like to shift its content to the top of 10 pixels, without change the size and filling the sub image
width x 10
Is there a function to perform directly this operation with OpenCV?
or you would do this
cv::Mat out = cv::Mat::zeros(frame.size(), frame.type()); frame(cv::Rect(0,10, frame.cols,frame.rows-10)).copyTo(out(cv::Rect(0,0,frame.cols,frame.rows-10)));