Last updated
Last updated
You can import all annotation types that are supported in RedBrick AI, including segmentations, classifications, bounding boxes, and more. Imported annotations will appear automatically on your annotator's interface.
Annotations and images must be imported together at the start.
If you want to add annotations programmatically to images that have already been uploaded, .
Annotation import is only supported through the SDK and CLI.
That is, you cannot use the to import annotations, and you must use the items list with the SDK/CLI to provide the required metadata along with annotations.
To import images along with segmentations, you must provide us with:
Images in any supported format and NIftI segmentation files.
that provides a mapping of:
Segmentation files to volumes so that segmentations are applied to correct images.
Values within segmentation file to taxonomy categories.
Once you've prepared the , you can import the images and annotations using the or .
You can find the . In this section, we will focus on importing segmentations. In the examples below, pay attention to the following fields:
segmentations
: The segmentation files to be applied to the task.
segmentMap
: Map the values present in the segmentation files to their corresponding taxonomy categories.
Sometimes, segmentations for a single volume are stored in multiple segmentation files, but these segmentation files are not binary masks. In this case, follow the format below.
The values 1 and 2 must be present in either segmentation-1.nii.gz
or segmentation-2.nii.gz.
Values in segmentation-1.nii.gz
& segmentation-2.nii.gz
that are not in segmentMap
will not map to any taxonomy category. This will result in uneditable, view-only annotations.
All values in segmentation.nii.gz
that are not in segmentMap
will not be mapped to any taxonomy category in the editor.
A common pattern is to store each segmentation instance in a separate NIfTI file as a binary mask. In the example below, all non-zero values in segmentation-1.nii.gz
are meant to correspond to the taxonomy category category-a
.