Image generator for video display

Abstract: An image generator generates brightness modulated bars for a video monitor. The bars run parallel to the scan line of the monitor allowing the use of a relatively slow digital to analog converter (DAC). A frame buffer need only be as deep as a number of different shades desired on a particular scan line, instead of needing to be as deep as the resolution of the DAC. Using a multiplexer allows use of a 1 bit deep frame buffer instead of a conventional 12 bit deep frame buffer. A feature of the image generator allows efficient determination of a mean gray scale used in generating the brightness modulated bars. The brightness modulation scheme is sinusoidal, that is, based on a sine function, for specified applications but can be any other modulation scheme based on, for example, a sawtooth function, a step functions an exponential function, and so forth.

Description: BACKGROUND OF THE INVENTION This invention relates to an image generator for a video display, and in particular, to an image generator for generating accurate graphical images for a video monitor. There are several medical diagnostic and research instruments that require sinusoidal gratings on an illuminated screen. For example, a method for testing for glaucoma known as frequency doubled perimetry involves having a patient observe a sinusoidal grating pattern in a number of different regions of a display screen of a video monitor. The contrast of the pattern is varied until the patient observing the well known phenomenon of visual frequency doubling notes the cessation of the phenomenon, thereby establishing a contrast sensitivity for that patient. The contrast sensitivity is compared to the contrast sensitivity for persons of normal vision. A significant deviation from the norm in contrast sensitivity may indicate some degradation of the visual function, possibly due to the presence of glaucoma, AMD (age related macular degeneration), diabetic retinopathy, or other disease. Some testing methods are presented in detail in U.S. Patent Nos. 5,295,495 and 5,065,767. Producing the required contrast bars, or grating, requires providing video timing signals and a high resolution gray scale video signal to the video monitor. A conventional approach to generating a video signal of the necessary high resolution includes using a video coprocessor, a 12 bit deep frame buffer, and a very fast bit digital to analog converter (DAC). There are several disadvantages to this conventional approach. First, nearly 420 KBytes of fast VRAM are required for the frame buffer. Updating such a frame buffer with a new screen pattern in 10 msec, necessary for each contrast adjustment to appear instantaneous to the viewer, requires a data bus bandwidth of 2.6 Mwords/sec (1 word equals 12 bits) along with a DAC that is fast enough to handle the data bus speed. Second, the expense of currently available high integration video controller IC's capable of such graphics, a very fast DAC, and a 12 bit deep frame buffer add significantly to the overall cost of a conventional video generator adapted to this special use. Conventional image generators are known from EP-A-0 096 325 and WO-A-95 29627. OBJECTS AND SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide an inexpensive image generator with high quality and accuracy. Another object of the present invention is to provide an image generator especially suited for use in testing the human visual system. Still another object of the invention is to provide an image generator for producing a graphic image. A further object of the invention is to provide an image generator for producing a graphic image that is brightness modulated. A still further object of the present invention is to provide an image generator capable of producing a sinusoidal grating. The invention therefore provides an image generator as defined in claim 1. The dependent claims define preferred embodiments. Briefly stated, an image generator generates brightness modulated bars for a video monitor. The bars run parallel to the scan line of the monitor allowing the use of a relatively slow digital to analog converter (DAC). A frame buffer need only be as deep as a number of different shades desired on a particular scan line, instead of needing to be as deep as the resolution of the DAC. Using a multiplexer allows use of a 1 bit deep frame buffer instead of a conventional 12 bit deep frame buffer. A feature of the image generator allows efficient determination of a mean gray scale used in generating the brightness modulated bars. The brightness modulation scheme is sinusoidal, that is, based on a sine function, for specified applications but can be any other modulation scheme based on, for example, a sawtooth function, a step function, an exponential function, and so forth. The above, and other objects, features and advantages of the present invention will become apparent from the following description read in conjunction with the accompanying drawings, in which like reference numerals designate the same elements. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1A shows a video monitor display screen with a vertical grating across the entire display screen. Fig. 1B shows a video monitor display screen with a vertical grating truncated by a 5 degree central aperture with a remainder of the display being a mean level of gray. Fig. 1C shows a display screen with a vertical grating in a quadrant Q1 with a remainder of the display being a mean level of gray. Fig. 1D shows a display screen with a vertical grating in a quadrant Q2 with a remainder of the display being a mean level of gray. Fig. 1E shows a display screen with a vertical grating in a quadrant Q3 with a remainder of the display being a mean level of gray. Fig. 1F shows a display screen with a vertical grating in a quadrant Q4 with a remainder of the display being a mean level of gray. Fig. 1G shows a display screen with a vertical grating in a section S1 of quadrant Q1 with a remainder of the display being a mean level of gray. Fig. 1H shows a display screen with a vertical grating in a section S2 of quadrant Q1 with a remainder of the display being a mean level of gray. Fig. 1I shows a display screen with a vertical grating in a section S3 of quadrant Q1 with a remainder of the display being a mean level of gray. Fig. 1J shows a display screen with a vertical grating in a section S4 of quadrant Q1 with a remainder of the display being a mean level of gray. Fig. 1K shows a display screen with a vertical grating in a section S1 of quadrant Q4 with a remainder of the display being a mean level of gray. Fig. 1L shows a display screen with a vertical grating in a section S2 of quadrant Q4 with a remainder of the display being a mean level of gray. Fig. 1M shows a display screen with a vertical grating in a section S3 of quadrant Q4 with a remainder of the display being a mean level of gray. Fig. 1N shows a display screen with a vertical grating in a section S4 of quadrant Q4 with a remainder of the display being a mean level of gray. Fig. 1O shows a display screen with a vertical grating in a section S1 of quadrant Q2 with a remainder of the display being a mean level of gray. Fig. 1P shows a display screen with a vertical grating in a section S2 of quadrant Q2 with a remainder of the display being a mean level of gray. Fig. 1Q shows a display screen with a vertical grating in a section S3 of quadrant Q2 with a remainder of the display being a mean level of gray. Fig. 1R shows a display screen with a vertical grating in a section S4 of quadrant Q2 with a remainder of the display being a mean level of gray. Fig. 1S shows a display screen with a vertical grating in a section S1 of quadrant Q3 with a remainder of the display being a mean level of gray. Fig. 1T shows a display screen with a vertical grating in a section S2 of quadrant Q3 with a remainder of the display being a mean level of gray. Fig. 1U shows a display screen with a vertical grating in a section S3 of quadrant Q3 with a remainder of the display being a mean level of gray. Fig. 1V shows a display screen with a vertical grating in a section S4 of quadrant Q3 with a remainder of the display being a mean level of gray. Fig. 2 shows a display screen divided into seventeen regions. Fig. 3 is a graphical representation of a light intensity along the X axis. Fig. 4 is a block diagram of an image generator according to an embodiment of the present invention. Fig. 5 is a block diagram of an image generator according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to Fig. 1A, a grating consisting of a series of vertical sinusoidally modulated bars is shown, although any modulated pattern can be used for the grating. Grating bars differ from solid bars in that solid bars consist of black and white stripes with a spatially instantaneous brightness transition when measured across the longitudinal, or X axis, whereas an intensity measured along the longitudinal axis of grating bars is a sinusoidal function of the X axis. The brightness (intensity) is constant along the transverse, or Y axis, for all values of Y at any fixed X coordinate. Referring to Fig. 2, a testing method known as frequency doubled perimetry includes dividing a display screen 40, preferably 40° by 40° in size into 16 regions, preferably squares 10° by 10° in size. A 17th region is preferably a circle 5° in size centered within display screen 40 such as shown in Fig. 1B. An image portion 41 of display screen 40 contains the vertical grating. A remainder of display screen 40 is a mask portion 42. Figs. 1C-1F show display screen 40 divided into quadrants Q1-Q4 respectively. Figs. lg-lV show a display screen a with a vertical grating in regions Q1-S1 through Q4-S4. One of these regions is shown at a time to a patient with the grating (stimulus pattern) shown thereon. The pattern is then shifted 180° at a frequency, known as the temporal frequency, typically between 8 and 50 Hz, and preferably at 25 Hz. That is, during each temporal period, the brightest point (peak) of each grating sinusoid is cycled to become a trough (dimmest point) alternating every 20 msec. In effect, the display becomes its negative or is considered as shifting 180°. The spatial frequency of the grating bars is typically between 0.2 to 2 cycles (of the sine wave) per degree (field of view). The contrast of the waveform is adjusted during the test. Contrast is defined as the brightness ratio between the brightest (MAX) and dimmest (MIN) portions of the grating as shown by C = (MAX - MIN) / (MAX + MIN) with a value between 0 and 1. The grating sinusoids preferably are on a background of a mean level of gray. The light intensity along the X axis is shown by B = G (1+C*sin(X)) where B is the brightness at a point, G is the mean level of gray (also known as the DC component), C is the contrast as defined above, and sin(X) is the sine function of the X coordinate. Different contrast levels are used during testing. For example, if the first contrast level used is 50% and the patient observes the doubling effect, the contrast level is lowered by a specified amount. If the patient does not observe the doubling effect at 50% contrast, the contrast level is raised by a specified amount. This step is repeated using an automated staircase procedure until a contrast threshold (contrast sensitivity) for that patient is determined. The contrast level is then compared to a mean contrast level of people with known normal vision to detect the presence of damage to the retina. Different portions of the retina are tested by using square patterns presented in different areas of the visual field. Within the visual field, the order in which squares are presented is varied randomly to obtain reliable data from the patient. Referring to Fig. 3, the function B = G (1+C*sin(X)) is shown graphically. The mean brightness must be kept constant during manipulation of the sinusoidally modulated gratings, such as, for example, during the inversion process and contrast adjustment. The regions of the screen that have no grating are masked to the mean gray level. A curve C1 depicts a contrast value of 100% while a curve C2 shows a contrast value less than 100%. Mean level of gray G is the midpoint on the Y axis. Note that at 100% contrast, the lowest value of the function is always zero brightness whereas the highest value of the function is 2G. As the contrast approaches zero, the brightness approaches mean level of gray G. That is, zero contrast gratings result in a full screen of mean level gray. This is also true for all points where X = 0, 180, 360, 540, ... degrees. The actual graphical requirements of the gratings can be realized using simpler electronics than are used in conventional systems. If the horizontal scan lines are arranged on the transverse axis instead of the traditional longitudinal axis, the conventional 12 bit resolution gray values for the gratings remains unchanged throughout the scan line. Since every portion of display screen 40 shown in Figs. 1A-1V consists of either image portion 41 or mask portion 42, only two shades of gray are ever required on one scan line. The shade of gray for one scan line of image portion 41 is known as the SHADE and the shade of gray for one scan line of mask shade 42 is known as the MASK. The high resolution video information is determined line by line instead of pixel by pixel. The 12 bit deep video frame buffer of the prior art can therefore be replaced by a 1 bit deep video frame buffer. The bars of the grating run parallel to the scan line of the video monitor, thus allowing for use of a slower DAC than is typically used for this purpose. If a system has 512 pixels per scan line, the DAC need only be 1/512th of the speed of a DAC used in a conventional system. This feature provides a major cost and technical advantage. The brightness at any point of the image on display screen 40 has the resolution of the DAC. That is, with a 12-bit DAC, the brightness resolution of the image is 12 bits even though the frame buffer is only 1-bit deep. Unlike a conventional system, the depth of the frame buffer need not match the resolution of the DAC for proper operation. A CPU or other processing means used must be fast enough to calculate the high resolution gray values in a timely fashion. Any fast CPU can be used as long as the timing signals are provided either internally or externally. External timing signals can be provided by a commercially available timer/counter peripheral chip, programmable logic devices, gate arrays, or a simple PROM/flip-flop state machine. An inexpensive video coprocessor can also be used. An example of a suitable processor is the Motorola MC68332 which contains a 32 bit CPU and an on-board timer processor unit (TPU). The MC68332 a microcontroller (MCU) is capable of generating most of the video timing signals internally. Some convention external "glue logic" generates the remainder of timing signals required by the video monitor. Other suitable MCU's include the Hitachi HD6413003. Referring to Fig. 4, an image generator 2 includes a microcontroller 10. A specific pattern of MASK and SHADE, generated either externally or internally, resides in an MCU memory 11. Microcontroller 10 receives the pattern from MCU memory 11 via a bus 26, shown here using a 16 bit word, and sends it to a parallel to serial FIFO shift register 14. Based on the desired contrast, a specific gray level is determined and sent via a 12 bit shade signal 21 to a shade DAC (digital to analog converter) 12 which converts 12 bit shade signal 21 to an analog shade signal 22. Shade signal 21 is determined each horizontal retrace period of a video monitor 40. A mask signal 23 is produced by a mask voltage reference 13. Since mask voltage reference 13 is typically not as precise (12 bit) as shade signal 22, shade signal 22 and mask signal 23 are sent to a comparator 15 which outputs a mask shade comparator signal 25. Mask shade comparator signal 25 enables microcontroller 10 to determine the shade DAC 12 output value that equals the mask signal 23 value. This determination is preferably part of a power up calibration procedure so that microcontroller 10 interprets the mask signal 23 value as the mean gray value for generating the gratings. The mask voltage reference level is also known as the mean level and represents the voltage level that is equivalent to a sinusoidal waveform having a contrast of zero. In other words, the mask voltage reference level is a DC offset voltage about which the sinusoidal grating waveform alternates. Mask voltage reference 13 is optionally another DAC. The calibration procedure described above remains preferable due the differences between individual DAC'S. Although a 12-bit DAC has excellent relative tolerances, i.e., one bit to another, the absolute levels of one DAC vary from the absolute levels of another DAC. Shade signal 22 and mask signal 23 are sent to an analog MUX 16 which outputs an analog video signal 24 to monitor 40. Analog MUX 16 selects either shade signal 22 or mask signal 23 to output as video signal 24 depending on a frame buffer signal 30 output from parallel to serial FIFO shift register 14. Based on the pattern stored in MCU memory 11, microcontroller 10 sends a signal 27 to shift register 14 which simply passes signal 27 on to analog MUX 16 as frame buffer signal 30. Since the frame buffer function resides in memory, frame buffer signal 30 is written as fast as possible without any need for handshaking. A 1 bit video DRAM optionally replaces shift register 14. Video timing signals 31, preferably produced by an on-board TPU (timing processing unit) in microcontroller 10, provide the basis for horizontal and vertical timing signals to monitor 40. Video blanking signals (not shown) are also produced by the TPU. The unit can be designed to produce only one pattern-type. Optionally, several modes of operation are possible. In one mode, only one pattern-type is produced. In another mode, a user inputs a desired pattern-type and contrast level to microcontroller 10 through an input means such as, for example, a keyboard. Microcontroller 10 preferably generates a pattern corresponding to the desired pattern-type and stores it in MCU memory 11. During start up calibration, microcontroller 10 receives mask shade comparator signal 25 from comparator 15 to determine the mask and shade levels. Microcontroller 10 preferably generates a 12-bit digital representation of a sinusoidal grating. The amplitude of the these sinusoids is determined by how much contrast is desired the video monitor: the higher the amplitude, the higher the contrast. Based on the pattern and desired contrast level, microcontroller 10 outputs a shade signal 21 to shade DAC 12 and. DAC 12 thus receives its input directly from microcontroller 10 instead of from a video frame buffer. Shade signal 22, outputted by DAC 12, and mask signal 23, outputted by mask voltage reference 13, go to analog MUX 16, where one or the other is selected by shift register 14 based on the desired pattern and output as video signal 24 to monitor 45. The frame buffer function of the present invention provides selection between two high resolution analog signals, shade signal 22 and mask signal 23, which can be located anywhere on the monitor screen as defined by a 1 bit frame buffer. Microcontroller 10 produces video timing signal 31 that controls the timing of monitor 45 as it displays video signal 24. Referring to Fig. 5, an embodiment of the present invention provides for more regions by increasing the number of inputs to analog MUX 16. For example, using an n-bit deep frame buffer 14' instead of 1-bit deep shift register 14 permits using 2 n -number of DAC's or other voltage sources. Analog MUX 16 must also have 2 n inputs. The number of different analog signals, hence different regions on the screen, hence different kinds of bars on the screen is then 2 n -bits. With n-bit deep frame buffer 14', the SHADE is defined as the gray value chosen from among the outputs of the 2 n - number of DAC's by analog MUX 16. The SHADE thus can vary within the scan line. In certain applications, the SHADE is defined as a different value for every scan line or the MASK can be adjusted. It is possible to use a digital port in place of DAC 12 and either a digital port or digital constant in place of reference voltage generator 13. The digital outputs then go to a digital MUX with a fast DAC converting the output from the digital MUX to the video input signal. Having described preferred embodiments of the invention with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims: An image generator for a video monitor, comprising : processing means for processing data including means for storing a pattern ; generating means, responsive to said processing means, for generating an analog shade signal from an output of said processing means ; means for generating an analog mask signal ; and selecting means responsive to said pattern, for alternately selecting one of said shade signal and said mask signal to produce a selected signal, said selected signal being effective as a single scan line video input to said video monitor, and means for comparing said shade signal and said mask signal to determine a mean gray value. The image generator according to claim 1, wherein said selecting means comprises at least one of a frame buffer, a multiplexor, a frame register, and a RAM. The image generator according to claim 1 ; wherein said processing means is a microcontroller outputting a digital shade signal, said microcontroller storing a pattern in a memory and outputting said pattern to a shift register; wherein said generating means is a shade DAC receiving said digital shade signal as an input and outputting an analog shade signal ; wherein the means for generating an analog mask signal is a mask voltage reference ; and wherein it further comprises an analog MUX receiving said analog shade signal and said analog mask signal as inputs, said analog MUX outputting one of said analog shade signal and said analog mask signal depending on an output received from said shift register The image generator according to claim 3, further comprising : a comparator for receiving said analog shade signal and said analog mask signal as inputs and sending a comparator output to said microcontroller ; and wherein said microcontroller establishes a mean gray value from said comparator output, said microcontroller using said mean gray value in outputting said digital shade signal. The image generator according to claim 1 for generating a grating of bars for a video monitor, wherein said selecting means, responsive to said processing means, alternately selects one of said shade signal and said mask signal to produce said selected signal, said selected signal being effective as a portion of a scan line of a video input to said video monitor to generate said grating ; and wherein a direction of said scan line is identical to a direction of said grating. The image generator according to claim 1, wherein said selected signal is based on said pattern. The image generator according to claim 1, wherein said processing means includes timing means for sending a video timing signal to said video monitor. The image generator according to claim 1, wherein said processing means includes means for generating said pattern. The image generator according to claim 5, wherein said grating includes a series of vertical sinusoidally modulated bars. The image generator according to claim 5, wherein said selecting means includes an analog multiplexer and a parallel to serial FIFO shift register. The image generator according to claim 5, wherein a contrast of said grating is controlled by said shade generating means. The image generator according to claim 3 for generating a grating for a video monitor, wherein ; said shade DAC outputs a first voltage level ; the mask voltage reference is a second voltage level; and wherein said analog MUX receives said first and second voltage levels as inputs, and said analog MUX outputs a video input consisting of one of said first voltage level and said second voltage level depending on an output received from said shift register. The image generator according to claim 1, for generating a grating of brightness modulated bars, for a video monitor : wherein the processing means is an 1-bit deep frame buffer; wherein the generating means is an m-bit DAC for producing a first analog signal; wherein the analog mask signal is a second analog signal; wherein selecting means responsive to said frame buffer, is continuously selecting one of said first and second analog signals to produce a selected signal ; and wherein it further comprises a scan line input of said monitor consisting of said selected signal, wherein a brightness modulated bar of said grating is generated, said brightness of said bar having a resolution of m-bits. The image generator according to claim 1, comprising ; a frame buffer signal generating means for generating an n-bit frame buffer signal ; means for generating 2 n number of voltage inputs, each input having a given resolution ; means, responsive to said frame buffer, for continuously selecting one of said 2 n inputs to produce a selected video signal line, a brightness of a pixel of said line having a resolution of the selected input. The image generator according to claim 14, wherein said pattern is a grating of brightness modulated bars, and said resolution is a resolution of a bar. The image generator according to claim 14, wherein each input includes one of a DAC and a reference voltage.

Inventors: AVEDISIAN ARTHUR G, DELUCIA PAUL, SALVATI JON R, AVEDISIAN, ARTHUR G., DELUCIA, PAUL, SALVATI, JON R.
Applicants: WELCH ALLYN INC, WELCH ALLYN, INC.
Application year: 1997
Main classification: A61B3
IPC codes: A61B3