Introduction - If you have any usage issues, please Google them yourself
centroid
Seeking the centroid of a region in the image
Read into the image
Two valued thresholds display two valued images
Tagging the connected parts of a binary image
Coordinates for recording the position of the centroid
Centroid