Automated Correction And Optimized Contrast Enhancement Of Multi-Line Ccd Images