Moving watershed and residual computations onto the GPU for speed.