Function cannyGradient
First, parallelizable Canny phase: computes gradient components and magnitude. The result may be partitioned by row/tile with a one-pixel halo.
void cannyGradient(
scope const(float)[] src,
ulong w,
ulong h,
ref float[] gx,
ref float[] gy,
ref float[] magnitude
) @safe;