摘要 |
A method of automatically setting gain and offset for a signal is achieved by defining a region of interest within the signal, such as a portion of a video line, and acquiring the signal. Max and min values for the region of interest are determined and tested against respective clipping levels. If either value clips, then the gain and offset are adjusted. Alternatively if only one value clips, then only the offset is adjusted, while if both values clip then the gain is adjusted until only one value clips. The adjustments of the gain and offset continue until a maximum number of attempts is reached or neither max/min value is clipped. The resulting display of the signal shows the region of interest of the signal making optimum use of the display area.
|