now getting both horizontal and vertical lines via matlab script up to a shift