Fixed Error in LineError Calculation because Sin and Cos use Radians and
not Angle
Added encoding of errors and gray-level