A step-by-step implementation of Spatial Transformer Networks for distortion-invariant image classification.