First time here? Check out the FAQ!
answered Jan 11 '15
You can use cv::moments to get the center of your region:
http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=moments#moments