Method and apparatus for processing electrical signals generated by the analysis of a line in an image