Ask Your Question

Revision history [back]

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