Source code for PyNutil.results.volume

from __future__ import annotations

from dataclasses import dataclass
import numpy as np


[docs] @dataclass class VolumeResult: """Volumes returned by :func:`~PyNutil.interpolate_volume`. Attributes ---------- value: Atlas-space value volume (float32). Each voxel holds the accumulated metric (pixel count, mean intensity, or object count) for that location. frequency: Per-voxel sample-count volume (uint32). Records how many section pixels contributed to each atlas voxel. damage: Binary damage-mask volume (uint8). A value of 1 indicates that the corresponding atlas voxel overlaps a damaged region. """ value: np.ndarray frequency: np.ndarray damage: np.ndarray