I want to find the principal axis of a blob which goes through the centroid of the blob. I was able to find the centroid of the blob but how can I find the principal axis?