A function to transfer polygon to mask, which use 1 to signal the inner points.
- image_size: [H, W]
- polygon: the coordinate of polygon, such as [x1,y1,x2,y2,...,xn,yn]
- return: mask numpy of image_size, 1 means points in polygon
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A function to transfer polygon to mask, which use 1 to signal the inner points.