used Opencv operations to extract directions
fix su sum
Optimization for line directions extractions