polar-computing / 3DSeals

0 stars 2 forks source link

Complexity score #11

Open aborowicz opened 8 years ago

aborowicz commented 8 years ago

Currently we rate patch complexity based on area and perimeter. This in sensitive to scale as area and perimeter scale differently, which is an issue both in that image sizes are different, and seals may be in slightly different positions.

Bento's idea is that we ignore polygon area and instead create the smallest rectangle that bounds the polygon, and use the ratio of perimeter : the diagonal of the rectangle as complexity.

Possible issue: Because shapely makes polygons based on points, does # of points from high-res polygons scale linearly to # of points from low-res?

Check: Take a patch, scale it, calc complexity, plot them.