I am am trying to create a rectangular ROI on an image with the location of a certain pixel being the center of the rectangle . How should I go about doing it ?
image= imread("C:\\image.png",1);
watermark=imread("C:\\watermark.png",0);
split(image,yuv_channels);
ROI=yuv_channels[0](Rect(100,100,watermark.cols,watermark.rows));
How should i modify it such that location (100,100) is at the centre of the ROI ?
Thankyou in advance for any help rendered.