Skip to content

Transfer polygon(float vertex) to a mask which demonstrate the inner points of polygon, implement by Python

Notifications You must be signed in to change notification settings

thisiszhou/polygon2mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

polygon2mask

A function to transfer polygon to mask, which use 1 to signal the inner points.

Example p2m output.

Interface

  • 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

Details

About

Transfer polygon(float vertex) to a mask which demonstrate the inner points of polygon, implement by Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages