Skip to content

webknossos.geometry.mag

Classes:

  • Mag

    Represents the magnification level of a data layer.

Mag

Represents the magnification level of a data layer.

The magnification level indicates the downsampling factor from the original data.

Examples:

Non-downsampled finest quality:

mag = Mag(1)

4x downsampling in all dimensions: ` mag = Mag(4)

Anisotropic downsampling:

mag = Mag(2, 2, 1)  # 2x in x,y dimensions, no downsampling in z

Methods:

Attributes:

max_dim property

max_dim: int

max_dim_log2 property

max_dim_log2: int

x property

x: int

y property

y: int

z property

z: int

to_layer_name

to_layer_name() -> str

to_list

to_list() -> List[int]

to_long_layer_name

to_long_layer_name() -> str

to_np

to_np() -> ndarray

to_tuple

to_tuple() -> Tuple[int, int, int]

to_vec3_int

to_vec3_int() -> Vec3Int