webknossos.dataset.properties
¶
AxisProperties
¶
DatasetProperties
¶
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: DatasetViewConfiguration | None = None
DatasetViewConfiguration
¶
LayerProperties
¶
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: LayerViewConfiguration | None = None
LayerViewConfiguration
¶
Stores information on how the dataset is shown in webknossos by default.
alpha
class-attribute
instance-attribute
¶
alpha: float | None = None
Alpha value from 0 to 100. The WEBKNOSSOS default is 100 except for segmentation layers where it is 20.
color
class-attribute
instance-attribute
¶
color: tuple[int, int, int] | None = None
Color in RGB from 0 to 255. The WEBKNOSSOS default is [255, 255, 255].
intensity_range
class-attribute
instance-attribute
¶
intensity_range: tuple[float, float] | None = None
Min and max data value range (dependent on the layer's data type). Can be used to threshold the value range. The WEBKNOSSOS default is the full value range.
is_disabled
class-attribute
instance-attribute
¶
is_disabled: bool | None = None
Disable a layer. The WEBKNOSSOS default is False.
is_in_edit_mode
class-attribute
instance-attribute
¶
is_in_edit_mode: bool | None = None
Enable the histogram edit mode. The WEBKNOSSOS default is False.
is_inverted
class-attribute
instance-attribute
¶
is_inverted: bool | None = None
Invert a layer. The WEBKNOSSOS default is False.
mapping
class-attribute
instance-attribute
¶
mapping: dict[str, str] | None = None
Enables ID mapping for a segmentation layer and applies the selected mapping by default. The default WK behavior is to disable ID mapping. Expected values is a Dict with {"name": my_mapping_name, "type": "HDF5"}.
max
class-attribute
instance-attribute
¶
max: float | None = None
Maximum data value that might be encountered. This will restrict the histogram in WEBKNOSSOS and possibly overwrite
the max value of the intensityRange
(if that is higher).
min
class-attribute
instance-attribute
¶
min: float | None = None
Minimum data value that might be encountered. This will restrict the histogram in WEBKNOSSOS and possibly overwrite
the min value of the intensityRange
(if that is lower).
MagViewProperties
¶
SegmentationLayerProperties
¶
Bases: LayerProperties
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: LayerViewConfiguration | None = None
VoxelSize
¶
factor
class-attribute
instance-attribute
¶
factor: tuple[float, float, float] = field(converter=float_tpl)
SegmentationLayerProperties
¶
Bases: LayerProperties
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: LayerViewConfiguration | None = None
- Get Help
- Community Forums
- Email Support