cedalion.dot.tissue_properties
Tissue properties for light transport simulation.
Functions
|
Assemble a tissue-property array for Monte Carlo light transport simulation. |
Classes
|
Canonical tissue-type labels used to look up optical properties. |
- class cedalion.dot.tissue_properties.TissueType(value)[source]
Bases:
EnumCanonical tissue-type labels used to look up optical properties.
- cedalion.dot.tissue_properties.get_tissue_properties(
- segmentation_masks: DataArray,
- wavelengths: list,
Assemble a tissue-property array for Monte Carlo light transport simulation.
For each tissue type present in
segmentation_masksthe absorption, scattering, anisotropy, and refraction coefficients are looked up from the module-level dictionaries and stored in the output array. Index 0 is reserved for the background (vacuum).- Parameters:
segmentation_masks – xr.DataArray with dimension
"segmentation_type"whose integer values encode tissue identity.wavelengths – List of wavelengths for which properties are required. Currently the properties are wavelength-independent (FIXME).
- Returns:
NumPy array of shape
(n_tissues + 1, 4, n_wavelengths)where axis 1 encodes[absorption, scattering, anisotropy, refraction].- Raises:
ValueError – If a segmentation type string is not in
TISSUE_LABELS.