Computes signed curvature along a line.
flop mirrors x around the image vertical axis (horizontal reflection).