pub fn watershed_masked(
elevation: &Array2<f64>,
markers: &Array2<i32>,
mask: Option<&Array2<bool>>,
) -> Result<Array2<i32>, ErrorsJSL>Expand description
Like watershed but flooding only where mask is true (pixels outside the mask stay 0).