I have two images
one: is cropped image with dimension
another: is black image with different dimension
now i need to put the first image in center of the second image
any one can help me
thanks
I have two images
one: is cropped image with dimension
another: is black image with different dimension
now i need to put the first image in center of the second image
any one can help me
thanks
Assuming black image is larger then cropped image and both images are same type and same channels:
cropped_image.copyTo(my_black_image(cv::Rect((my_black_image.cols - cropped_image.cols)/2, (my_black_image.rows - cropped_image.rows)/2, cropped_image.cols, cropped_image.rows)));