MATLAB how to calculate elongation of a BW image -
i trying extract features leaf recognition application in matlab. need elongation value described following:
compute maximum escape distance dmax = maxx ∈ i d(x,∂i). elongation obtained 1 - 2dmax / d(i) , ranges 0 1. minimum achieved circular region. note ratio 2dmax/d(i) quotient between diameter of largest inscribed circle , diameter of smallest circumscribed circle.
d(i) diameter of image i. ∂i border of i.
pretend circular shaped image. furthest point border of shape center. called maximum escape distance.
elongation = 1 - (interior ellipse radius/surrounding ellipse raidus)
regionprops result image below:
area: 352085 centroid: [311.2075 492.9844] boundingbox: [2.5000 2.5000 586 1139] subarrayidx: {1x2 cell} majoraxislength: 869.2058 minoraxislength: 535.2340 eccentricity: 0.7879 orientation: -85.2073 convexhull: [99x2 double] conveximage: [1139x586 logical] convexarea: 403293 image: [1139x586 logical] filledimage: [1139x586 logical] filledarea: 352085 eulernumber: 1 extrema: [8x2 double] equivdiameter: 669.5435 solidity: 0.8730 extent: 0.5275 pixelidxlist: [352085x1 double] pixellist: [352085x2 double] perimeter: 3.2466e+03
Comments
Post a Comment