This does the following :
pixpipe.FileImageReader
pixpipe.Image2D
objectpixpipe.ImageDerivativeFilter
pixpipe.GradientImageFilter
with the derivativepixpipe.CanvasImageWriter
The first image is the gradient direction. Note that it does not really make sens to match a [-PI/2, PI/2] interval to [0, 255].
The second image is the gradient magnitude, matched to [0, 255]