How can i measure shape elongation faeture in matlab or python opencv? There is a function library or i have to implement to my own? In case there is no function, i found this definition:
"The less-common elongation shape factor is defined as the square root of the ratio of the two second moments in of the particle around its principal axes"
f_elong = sqrt (i2/i1)
Where i found these first and second moments?