Skip to main content

watershed

Function watershed 

Source
pub fn watershed(
    elevation: &Array2<f64>,
    markers: &Array2<i32>,
) -> Result<Array2<i32>, ErrorsJSL>
Expand description

Floods elevation from markers (positive integers label the seeds, 0 means unlabelled) and returns the label of every reachable pixel. Pixels connected to no marker stay 0.