Determination of the geometric center using image processing

Image processing methods can also be used to determine the geometric center of any object. The object must first be determined by segmentation (binarization) of the image. For example, in the case of a triangle, the geometric center of the area is at the intersection of the medians.