Convert polygon array into label image. Label starts with 1 and 0 mean the pixel does not belong to any polygons. No z-buffer is taken into account and occlusion is not solved correctly.
Input 3-D polygon array.
Input camera info to project 3-D polygon.
Mask image to fill
~inputpolygon. Currently only convex polygon is supported.