add mode parameter for level set
fix hough lines