py_eddy_tracker.poly¶
Method for polygon
Functions
Compute bbox to check if there are a bbox intersection. |
|
Return k_box index for each value |
|
Return i_box,j_box index for each value |
|
Compute an overlap with circle parameter and return a percentage |
|
Check if polygon is convex |
|
Check if polygons are convex |
|
Return polygon vertice. |
|
Choose a polygon in x,y list and return vertice. |
|
From a polygon, function will fit a circle. |
|
From a polygon, function will fit a circle. |
|
From a polygon, function will fit an ellipse. |
|
Get convex polygon which enclosed current polygon |
|
Get a pixel list of a regular grid contain in a contour. |
|
Return a vertice for each polygon and check that use same reference coordinates. |
|
Get index k_box for each box, and indexes to sort |
|
True for each postion inside a contour |
|
Test if point is left of an infinit line. |
|
Merge all polygon of the list |
|
Must be called with local coordinates (in m, to get an area in m²). |
|
Compute area from vertice. |
|
Check if poly_in is include in poly_out. |
|
Index of contour for each postion inside a contour, -1 in case of no contour |
|
Return percent of overlap for each item. |
|
Reduce array size if last position is repeated, in order to save compute time |
|
With a polygon(x,y) in local coordinates. |
|
Double area of triangle |
|
Return percent of overlap for each item. |
|
Polygon simplification with visvalingam algorithm |
|
Return index for each grid coordinates within contour. |
|
Check if x,y is in poly. |