Skip to main content

shape_3d_from_voxels

Function shape_3d_from_voxels 

Source
pub fn shape_3d_from_voxels(
    voxels: &[i32],
    spacing: (f64, f64, f64),
) -> Result<Shape3dFeatures, RadiomicsError>
Expand description

Extract 3D shape from a sparse list of voxel coordinates.

voxels is flat [x0,y0,z0, x1,y1,z1, …] (length = 3 * N). spacing is (sx, sy, sz) physical size of one voxel.