dacapo.experiments.arraytypes.distances
Classes
An array containing signed distances to the nearest boundary voxel for a particular label class. |
Module Contents
- class dacapo.experiments.arraytypes.distances.DistanceArray
An array containing signed distances to the nearest boundary voxel for a particular label class. Distances should be positive outside an object and negative inside an object. The distance should be 0 on the boundary. The class of each voxel can be determined by simply taking the argmin. The distance should be in the range [-max, max].
- classes
A mapping from channel to class on which distances were calculated.
- Type:
Dict[int, str]
- max
The maximum possible distance value of your distances.
- Type:
float
- interpolatable(self) bool
It is a method that returns True.
Note
This class is used to create a DistanceArray object which is used to represent an array containing signed distances to the nearest boundary voxel for a particular label class. The class of each voxel can be determined by simply taking the argmin.
- classes: Dict[int, str]
- property interpolatable: bool
Checks if the array is interpolatable. Returns True for this class.
- Returns:
True indicating that the data can be interpolated.
- Return type:
bool
- Raises:
NotImplementedError – This method is not implemented in this class
Examples
>>> distance_array = DistanceArray(classes={1: "class1"}) >>> distance_array.interpolatable True
Note
This method is used to check if the array is interpolatable.