Skip to content

webknossos.dataset.properties

#   class DatasetViewConfiguration:

Stores information on how the dataset is shown in webknossos by default.

#   DatasetViewConfiguration( four_bit: Union[bool, NoneType] = None, interpolation: Union[bool, NoneType] = None, render_missing_data_black: Union[bool, NoneType] = None, loading_strategy: Union[str, NoneType] = None, segmentation_pattern_opacity: Union[int, NoneType] = None, zoom: Union[float, NoneType] = None, position: Union[Tuple[int, int, int], NoneType] = None, rotation: Union[Tuple[int, int, int], NoneType] = None )

Method generated by attrs for class DatasetViewConfiguration.

#   four_bit: Union[bool, NoneType] = <member 'four_bit' of 'DatasetViewConfiguration' objects>
#   interpolation: Union[bool, NoneType] = <member 'interpolation' of 'DatasetViewConfiguration' objects>
#   render_missing_data_black: Union[bool, NoneType] = <member 'render_missing_data_black' of 'DatasetViewConfiguration' objects>
#   loading_strategy: Union[str, NoneType] = <member 'loading_strategy' of 'DatasetViewConfiguration' objects>
#   segmentation_pattern_opacity: Union[int, NoneType] = <member 'segmentation_pattern_opacity' of 'DatasetViewConfiguration' objects>
#   zoom: Union[float, NoneType] = <member 'zoom' of 'DatasetViewConfiguration' objects>
#   position: Union[Tuple[int, int, int], NoneType] = <member 'position' of 'DatasetViewConfiguration' objects>
#   rotation: Union[Tuple[int, int, int], NoneType] = <member 'rotation' of 'DatasetViewConfiguration' objects>
#   class LayerViewConfiguration:

Stores information on how the dataset is shown in webknossos by default.

#   LayerViewConfiguration( color: Union[Tuple[int, int, int], NoneType] = None, alpha: Union[float, NoneType] = None, intensity_range: Union[Tuple[float, float], NoneType] = None, min: Union[float, NoneType] = None, max: Union[float, NoneType] = None, is_disabled: Union[bool, NoneType] = None, is_inverted: Union[bool, NoneType] = None, is_in_edit_mode: Union[bool, NoneType] = None )

Method generated by attrs for class LayerViewConfiguration.

#   color: Union[Tuple[int, int, int], NoneType] = <member 'color' of 'LayerViewConfiguration' objects>
#   alpha: Union[float, NoneType] = <member 'alpha' of 'LayerViewConfiguration' objects>
#   intensity_range: Union[Tuple[float, float], NoneType] = <member 'intensity_range' of 'LayerViewConfiguration' objects>
#   min: Union[float, NoneType] = <member 'min' of 'LayerViewConfiguration' objects>
#   max: Union[float, NoneType] = <member 'max' of 'LayerViewConfiguration' objects>
#   is_disabled: Union[bool, NoneType] = <member 'is_disabled' of 'LayerViewConfiguration' objects>
#   is_inverted: Union[bool, NoneType] = <member 'is_inverted' of 'LayerViewConfiguration' objects>
#   is_in_edit_mode: Union[bool, NoneType] = <member 'is_in_edit_mode' of 'LayerViewConfiguration' objects>
#   class MagViewProperties:
#   MagViewProperties(resolution: webknossos.geometry.mag.Mag, cube_length: int)

Method generated by attrs for class MagViewProperties.

#   resolution: webknossos.geometry.mag.Mag = <member 'resolution' of 'MagViewProperties' objects>
#   cube_length: int = <member 'cube_length' of 'MagViewProperties' objects>
#   class LayerProperties:
#   LayerProperties( name: str, category: str, bounding_box: webknossos.geometry.bounding_box.BoundingBox, element_class: str, wkw_resolutions: List[webknossos.dataset.properties.MagViewProperties], data_format: str, num_channels: Union[int, NoneType] = None, default_view_configuration: Union[webknossos.dataset.properties.LayerViewConfiguration, NoneType] = None )

Method generated by attrs for class LayerProperties.

#   name: str = <member 'name' of 'LayerProperties' objects>
#   category: str = <member 'category' of 'LayerProperties' objects>
#   bounding_box: webknossos.geometry.bounding_box.BoundingBox = <member 'bounding_box' of 'LayerProperties' objects>
#   element_class: str = <member 'element_class' of 'LayerProperties' objects>
#   wkw_resolutions: List[webknossos.dataset.properties.MagViewProperties] = <member 'wkw_resolutions' of 'LayerProperties' objects>
#   data_format: str = <member 'data_format' of 'LayerProperties' objects>
#   num_channels: Union[int, NoneType] = <member 'num_channels' of 'LayerProperties' objects>
#   default_view_configuration: Union[webknossos.dataset.properties.LayerViewConfiguration, NoneType] = <member 'default_view_configuration' of 'LayerProperties' objects>
#   class SegmentationLayerProperties(LayerProperties):
#   SegmentationLayerProperties( name: str, category: str, bounding_box: webknossos.geometry.bounding_box.BoundingBox, element_class: str, wkw_resolutions: List[webknossos.dataset.properties.MagViewProperties], data_format: str, num_channels: Union[int, NoneType] = None, default_view_configuration: Union[webknossos.dataset.properties.LayerViewConfiguration, NoneType] = None, largest_segment_id: int = -1, mappings: List[str] = [] )

Method generated by attrs for class SegmentationLayerProperties.

#   largest_segment_id: int = <member 'largest_segment_id' of 'SegmentationLayerProperties' objects>
#   mappings: List[str] = <member 'mappings' of 'SegmentationLayerProperties' objects>
#   class DatasetProperties:
#   DatasetProperties( id: Dict[str, str], scale: Tuple[float, float, float], data_layers: List[Union[webknossos.dataset.properties.SegmentationLayerProperties, webknossos.dataset.properties.LayerProperties]], default_view_configuration: Union[webknossos.dataset.properties.DatasetViewConfiguration, NoneType] = None )

Method generated by attrs for class DatasetProperties.

#   id: Dict[str, str] = <member 'id' of 'DatasetProperties' objects>
#   scale: Tuple[float, float, float] = <member 'scale' of 'DatasetProperties' objects>
#   data_layers: List[Union[webknossos.dataset.properties.SegmentationLayerProperties, webknossos.dataset.properties.LayerProperties]] = <member 'data_layers' of 'DatasetProperties' objects>
#   default_view_configuration: Union[webknossos.dataset.properties.DatasetViewConfiguration, NoneType] = <member 'default_view_configuration' of 'DatasetProperties' objects>
#   def bbox_to_wkw(o):
#   def mag_to_array(o):
#   def disambiguate_layer_properties(obj: dict, _: Any) -> webknossos.dataset.properties.LayerProperties:
#   class cls:

Stores information on how the dataset is shown in webknossos by default.

#   cls( color: Union[Tuple[int, int, int], NoneType] = None, alpha: Union[float, NoneType] = None, intensity_range: Union[Tuple[float, float], NoneType] = None, min: Union[float, NoneType] = None, max: Union[float, NoneType] = None, is_disabled: Union[bool, NoneType] = None, is_inverted: Union[bool, NoneType] = None, is_in_edit_mode: Union[bool, NoneType] = None )

Method generated by attrs for class LayerViewConfiguration.

#   color: Union[Tuple[int, int, int], NoneType] = <member 'color' of 'LayerViewConfiguration' objects>
#   alpha: Union[float, NoneType] = <member 'alpha' of 'LayerViewConfiguration' objects>
#   intensity_range: Union[Tuple[float, float], NoneType] = <member 'intensity_range' of 'LayerViewConfiguration' objects>
#   min: Union[float, NoneType] = <member 'min' of 'LayerViewConfiguration' objects>
#   max: Union[float, NoneType] = <member 'max' of 'LayerViewConfiguration' objects>
#   is_disabled: Union[bool, NoneType] = <member 'is_disabled' of 'LayerViewConfiguration' objects>
#   is_inverted: Union[bool, NoneType] = <member 'is_inverted' of 'LayerViewConfiguration' objects>
#   is_in_edit_mode: Union[bool, NoneType] = <member 'is_in_edit_mode' of 'LayerViewConfiguration' objects>
Back to top