added 2d distortion calculation incl. errors

Signed-off-by: LK <LK@uni>