I have done cattle image segmentation and edge detection of the cattle image attached here. I have equally obtained the boundary pixel along x and y axis where the pixel value equal to 1. I want to do shape recognition and description of the cattle image attached here. I need MATLAB code to find the centroid of the the image that is (xc,yc), also with MATLAB code for implementing radius signature of the formula ( rp=[ (xc- xp)2+ (yc- yp)2 ]1/2 ) and the code for implementing DFT in MATLAB.