Is there an OpenCV function to draw an image over another image?
I have one big image of Mat type.
And I have a small image of Mat type (5x7).
I want to draw this small image over the big image at specified coordinates.
Is there an OpenCV function to draw an image over another image? I have
Share
Use
Mat::rowRange()andMat::colRange()to specify the area to which you want to draw in the destinationMat. Code:Results in the following:
before
copyTo():after
copyTo():