Skip to main content

shape_2d_from_mask

Function shape_2d_from_mask 

Source
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.