Split edge & line detection into two steps for better feedback while developing