Drawing shapes in images
I am trying to draw the circle in the center if the images , like the image below
there may be the images of many shapes/size but i want to draw circle/eclipse every time in the same way.
Below is the code i tried for it
Mat img = imread ("E:\\test.jpg");
int center_img = (img.rows*img.cols)/2;
double radius_img = img.rows/2+img.cols/2;
circle(img,Point(img.rows/2,img.cols/2), img.rows/2,1, 8,0);
imshow ("img" , img);
cvWaitKey(0);