Fixed Line Detection Code with equalizeHist()