c++ - Shift image content with OpenCV -
c++ - Shift image content with OpenCV -
starting image, shift content top of 10 pixels, without alter size , filling sub image width x 10
on bottom black.
for instance, original:
and shifted:
is there function perform straight operation opencv?
is there function perform straight operation opencv?
http://code.opencv.org/issues/2299
or 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)));
c++ opencv
Comments
Post a Comment