dacapo.experiments.arraytypes.annotations
Classes
An AnnotationArray is a uint8, uint16, uint32 or uint64 Array where each |
Module Contents
- class dacapo.experiments.arraytypes.annotations.AnnotationArray
An AnnotationArray is a uint8, uint16, uint32 or uint64 Array where each voxel has a value associated with its class. The class of each voxel can be determined by simply taking the value.
- classes
A mapping from class label to class name.
- Type:
Dict[int, str]
- interpolatable(self) bool
It is a method that returns False.
Note
This class is used to create an AnnotationArray object which is used to represent an array of class labels.
- classes: Dict[int, str]
- property interpolatable
- Method to return False.
- Returns:
- bool
Returns a boolean value of False representing that the values are not interpolatable.
- Raises:
NotImplementedError – This method is not implemented in this class.
Examples
>>> annotation_array = AnnotationArray(classes={1: "mitochondria", 2: "membrane"}) >>> annotation_array.interpolatable False
Note
This method is used to check if the array is interpolatable.