pub fn shape_2d_from_mask(
mask: &[u8],
width: usize,
height: usize,
) -> Result<Shape2dFeatures, RadiomicsError>Expand description
Extract 2D shape from a binary mask (nonzero = object).
mask is row-major width * height of u8.
pub fn shape_2d_from_mask(
mask: &[u8],
width: usize,
height: usize,
) -> Result<Shape2dFeatures, RadiomicsError>Extract 2D shape from a binary mask (nonzero = object).
mask is row-major width * height of u8.