mask_annotation_ndjson = {
'name': 'mask'
'groupKey' : 'axial', //should be 'axial', 'sagittal', or 'coronal'
'masks' : {
'frames' : [
{'index': 1, 'instanceURI': 'https://storage.labelbox.com/cjhfn5y6s0pk507024nz1ocys%2F1d60856c-59b7-3060-2754-83f7e93e0d01-1?Expires=1666901963361&KeyName=labelbox-assets-key-3&Signature=t-2s2DB4YjFuWEFak0wxYqfBfZA'},
{'index': 5, 'instanceURI': 'https://storage.labelbox.com/cjhfn5y6s0pk507024nz1ocys1%2F1d60856c-59b7-3060-2754-83f7e93e0d01-1?Expires=1666901963361&KeyName=labelbox-assets-key-3&Signature=t-2s2DB4YjFuWEFak0wxYqfBfZA'}
],
'instances' : [
{'colorRGB': [0,0,255] , 'name': 'mask1'}, // This maps the pixel color in the mask image to a feature class defined in your ontology
{'colorRGB': [0,255,0] , 'name': 'mask2'},
{'colorRGB': [255,0, 0], 'name': 'mask2'},
]
},
}