coco_polygon_to_mask {torchvision} | R Documentation |
Convert COCO polygon to mask tensor (Robust Version)
Description
Converts a COCO-style polygon annotation (list of coordinates) into a binary mask tensor.
Usage
coco_polygon_to_mask(segmentation, height, width)
Arguments
segmentation |
A list of polygons from COCO annotations (e.g., |
height |
Height of the image |
width |
Width of the image |
Value
A torch_bool() tensor of shape (height, width)
[Package torchvision version 0.7.0 Index]