webknossos.dataset.properties
¶
Classes:
-
AxisProperties
– -
DatasetProperties
– -
DatasetViewConfiguration
–Stores information on how the dataset is shown in webknossos by default.
-
LayerProperties
– -
LayerViewConfiguration
–Stores information on how the dataset is shown in webknossos by default.
-
MagViewProperties
– -
SegmentationLayerProperties
– -
VoxelSize
– -
SegmentationLayerProperties
–
AxisProperties
¶
DatasetProperties
¶
Methods:
Attributes:
-
data_layers
(List[Union[SegmentationLayerProperties, LayerProperties]]
) – -
default_view_configuration
(Optional[DatasetViewConfiguration]
) – -
id
(Dict[str, str]
) – -
scale
(VoxelSize
) –
data_layers
instance-attribute
¶
data_layers: List[Union[SegmentationLayerProperties, LayerProperties]]
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: Optional[DatasetViewConfiguration] = None
DatasetViewConfiguration
¶
Stores information on how the dataset is shown in webknossos by default.
Attributes:
-
four_bit
(Optional[bool]
) – -
interpolation
(Optional[bool]
) – -
loading_strategy
(Optional[str]
) – -
position
(Optional[Tuple[int, int, int]]
) – -
render_missing_data_black
(Optional[bool]
) – -
rotation
(Optional[Tuple[int, int, int]]
) – -
segmentation_pattern_opacity
(Optional[int]
) – -
zoom
(Optional[float]
) –
LayerProperties
¶
Attributes:
-
bounding_box
(NDBoundingBox
) – -
category
(LayerCategoryType
) – -
data_format
(DataFormat
) – -
default_view_configuration
(Optional[LayerViewConfiguration]
) – -
element_class
(str
) – -
mags
(List[MagViewProperties]
) – -
name
(str
) – -
num_channels
(Optional[int]
) – -
resolutions
(List[MagViewProperties]
) –
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: Optional[LayerViewConfiguration] = None
LayerViewConfiguration
¶
Stores information on how the dataset is shown in webknossos by default.
Attributes:
-
alpha
(Optional[float]
) –Alpha value from 0 to 100. The WEBKNOSSOS default is 100 except for segmentation
-
color
(Optional[Tuple[int, int, int]]
) –Color in RGB from 0 to 255. The WEBKNOSSOS default is [255, 255, 255].
-
intensity_range
(Optional[Tuple[float, float]]
) –Min and max data value range (dependent on the layer's data type). Can be used to threshold the value range.
-
is_disabled
(Optional[bool]
) –Disable a layer. The WEBKNOSSOS default is False.
-
is_in_edit_mode
(Optional[bool]
) –Enable the histogram edit mode. The WEBKNOSSOS default is False.
-
is_inverted
(Optional[bool]
) –Invert a layer. The WEBKNOSSOS default is False.
-
mapping
(Optional[Dict[str, str]]
) –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
(Optional[float]
) –Maximum data value that might be encountered. This will restrict the histogram in WEBKNOSSOS and possibly overwrite
-
min
(Optional[float]
) –Minimum data value that might be encountered. This will restrict the histogram in WEBKNOSSOS and possibly overwrite
alpha
class-attribute
instance-attribute
¶
alpha: Optional[float] = 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: Optional[Tuple[int, int, int]] = None
Color in RGB from 0 to 255. The WEBKNOSSOS default is [255, 255, 255].
intensity_range
class-attribute
instance-attribute
¶
intensity_range: Optional[Tuple[float, float]] = 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: Optional[bool] = None
Disable a layer. The WEBKNOSSOS default is False.
is_in_edit_mode
class-attribute
instance-attribute
¶
is_in_edit_mode: Optional[bool] = None
Enable the histogram edit mode. The WEBKNOSSOS default is False.
is_inverted
class-attribute
instance-attribute
¶
is_inverted: Optional[bool] = None
Invert a layer. The WEBKNOSSOS default is False.
mapping
class-attribute
instance-attribute
¶
mapping: Optional[Dict[str, str]] = 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: Optional[float] = 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: Optional[float] = 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
¶
Attributes:
-
axis_order
(Optional[Dict[str, int]]
) – -
cube_length
(Optional[int]
) – -
mag
(Mag
) – -
path
(Optional[str]
) – -
resolution
(Mag
) –
SegmentationLayerProperties
¶
Bases: LayerProperties
Attributes:
-
bounding_box
(NDBoundingBox
) – -
category
(LayerCategoryType
) – -
data_format
(DataFormat
) – -
default_view_configuration
(Optional[LayerViewConfiguration]
) – -
element_class
(str
) – -
largest_segment_id
(Optional[int]
) – -
mags
(List[MagViewProperties]
) – -
mappings
(List[str]
) – -
name
(str
) – -
num_channels
(Optional[int]
) – -
resolutions
(List[MagViewProperties]
) –
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: Optional[LayerViewConfiguration] = None
VoxelSize
¶
Methods:
Attributes:
-
factor
(Tuple[float, float, float]
) – -
unit
(LengthUnit
) –
factor
class-attribute
instance-attribute
¶
factor: Tuple[float, float, float] = field(converter=float_tpl)
SegmentationLayerProperties
¶
Bases: LayerProperties
Attributes:
-
bounding_box
(NDBoundingBox
) – -
category
(LayerCategoryType
) – -
data_format
(DataFormat
) – -
default_view_configuration
(Optional[LayerViewConfiguration]
) – -
element_class
(str
) – -
largest_segment_id
(Optional[int]
) – -
mags
(List[MagViewProperties]
) – -
mappings
(List[str]
) – -
name
(str
) – -
num_channels
(Optional[int]
) – -
resolutions
(List[MagViewProperties]
) –
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: Optional[LayerViewConfiguration] = None
- Get Help
- Community Forums
- Email Support