Patent ID: 11880981
Assignee: TATA CONSULTANCY SERVICES LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. The processor implemented method of claim 7, wherein the step of computing morphological features of the identified one or more leaves is preceded by:
converting an image associated with each of the identified one or more full leaves to gray scale to obtain a binary image;
shifting the centroid of each of the one or more full leaves to the center of the binary image, wherein the centroid is computed using co-ordinates of points along the contour of each of the one or more full leaves; and
rotating each of the one or more full leaves such that a line joining the center of the image with a farthest point on the contour of the one or more full leaves passes through the center of the image along the vertical axis by:
determining the farthest point on the contour of the one or more full leaves that is at a maximum distance from the associated centroid;
computing an angle between (i) a line joining the center of the image to the determined farthest point and (ii) a line passing through the center of the image along the vertical axis; and
rotating each of the one or more full leaves based on a rotation matrix defined using the computed angle.