Function watershed

Priority-flood watershed approximation. Labels local minima basins and marks competing fronts as zero (watershed lines).

void watershed(
  scope const(float)[] src,
  ulong w,
  ulong h,
  ref uint[] labels
) @safe;