[Olena-patches] 1801: Line gradient computation.