Shape classification through mathematical ratios, bounding box extraction, centroid computation, and medical morphometric analysis