webknossos.dataset_properties.dataset_properties
¶
AttachmentProperties
¶
AttachmentsProperties
¶
agglomerates
class-attribute
instance-attribute
¶
agglomerates: list[AttachmentProperties] | None = None
connectomes
class-attribute
instance-attribute
¶
connectomes: list[AttachmentProperties] | None = None
segment_index
class-attribute
instance-attribute
¶
segment_index: AttachmentProperties | None = None
DatasetProperties
¶
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: (
DatasetViewConfiguration | None
) = None
id
instance-attribute
¶
id: dict[str, str]
id is a legacy field that is not used anymore. Its keys are name (dataset directory name) and team (organization id) However, webknossos will take both from the dataset path and not from what is here in the datasource-properties.json.
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
¶
path
class-attribute
instance-attribute
¶
path: str | None = None
Could be None for older datasource-proterties.json files.
SegmentationLayerProperties
¶
Bases: LayerProperties
attachments
class-attribute
instance-attribute
¶
attachments: AttachmentsProperties = field(
factory=AttachmentsProperties
)
default_view_configuration
class-attribute
instance-attribute
¶
default_view_configuration: (
LayerViewConfiguration | None
) = None
- Get Help
- Community Forums
- Email Support