Method for correction of position location indicator for a display system

Abstract: In a large area display system, multiple persons may work together with multiple input devices for supplying and receiving information in an interactive system with a single large area display. The large area display system comprises a screen (20) wherein computer generated information is projected upon one side of the screen, and users interact with the computer (29) from the opposite side of the the screen (20). Data coordinates for an input device corresponding to a pseudo image sensed by the receiving subsystem electronics are provided to the controlling computer (29). The input data coordinates from the pseudo image are normalized for variations due to frequency dependence and electronic drift. The normalized data coordinates are looked up in a calibration table to account for distortion in the pseudo image detection electronics. Screen coordinates corresponding to pixel locations on the large area screen (20) are found by interpolation from the data from the calibration table. The calibration table is prepared off-line, based on a bicubic spline interpolating function which is then compressed using a delta compression scheme. During on-line operation of the system, screen coordinates are looked-up directly from the compressed table. The screen coordinates are then jitter smoothed to provide a smooth path of response closely conforming to original input locations. The jitter smoothing method uses an exponential function based on the magnitude of the change in the position of the input.

Description: The present invention relates to the input subsystem of an electronic large area writing system. More specifically, the invention relates to techniques for correcting input location information to produce a position location indicator on an interactive system, wherein multiple persons may work together for supplying and receiving information with a single large area display. In a collaborative working environment, several users may wish to view and manipulate displayed information simultaneously. It is desirable to provide a large area display system measuring several feet across (both horizontally and vertically) comprising a large area rear-projection display system and a position detecting receiving system based upon a position sensing integrating detector. Each of the multiple users would manipulate input devices which could be used simultaneously and independently for controlling its related position location indicator on the display in order to position a cursor, select an item from a menu, draw upon the display screen, or perform any number of standard functions. In this way the actions of each user would be readily visible to all the members of the group who would interact together much as they would relative to a chalkboard or whiteboard. Computer systems generally incorporate a position location indicator for providing a visual indication to the user of selected data. A specific position location indicator, such as a pointer, may be moved by the user to any desired point on the display in order to locate a cursor for the entry of keystroke characters, to trace the locus of points as in drawing alphanumeric characters or other patterns, to invoke and manipulate a functional command such as paint or erase, to open a menu, to invoke a displayed command, or to invoke other interface functions. In each case the location of the pointer must be known, and in many applications the desired control function should be known as well. WO92/05483 discloses a device for data input by selecting a displayed information unit. A user standing on the same side of a projection surface as a projector can use a laser pointer to affect the distribution of brightness on the projection surface, and the light from the laser pointer has a frequency range that passes through a spectral filter to a brightness detector while the projected light is filtered out. The position signal from the brightness detector goes through other components to a computer. During calibration, internal coordinates of the brightness detector are associated with display screen coordinates of the computer's display screen, so that the same information displayed on the projection surface can be shown on the display screen. Also, by using synchronization signals, a cursor can be shown on the computer's display screen. EP-A-0 074 703 discloses a coordinate sensing device that includes an electrical conducting member such as a fine mesh screen whose electrical potential can be sensed with a probe. If non-uniform electric fields are used, coordinates at displayed points are mapped with corresponding probed potentials in a calibration mode and, in a run mode, probed potentials are converted into coordinates by interpolation of the calibration map to overcome distortion due to cathode-ray devices. A large area writing system is described, for example, in a copending European Patent Application Publication No. EP-A-0 564 200. An input system is described in pending European Patent Application No. 91 310 077.2 (Publication No. 0 484 160 A2). Pointer positioning in the above-described system is effected by a user-controlled light-emitting pen which projects a diffuse light spot upon a light-dispersive display screen. The receiving system electronics detects the centroid of the light spot and produces voltages which are related to the input location, and computes input data coordinates from these voltages. However, these coordinates are dependent upon the electronics response of the system and the frequency of the input device, and have a non-linear relationship to the screen coordinates of the display. Information concerning the input data coordinate location for the centroid of the light spot is relayed to the computer system, which determines the screen coordinates that correspond to the sensed input coordinates. The computer system then provides a position location indicator, such as a cursor in the display information, responsive to the input location information. It is an object of this invention to provide a method for correcting the position location indicator for the response of a large area display system to input location information. Accordingly, the present invention provides a method for providing information to an interactive system as defined in any one of the accompanying claims. In one embodiment, one or more light-providing input devices is provided for simultaneously and independently entering position and function information into a large area electronic writing system comprising a large area viewing surface upon which a rear-projection display system displays image and position location indicator information generated by the electronic system. The system displays the image and position location information on an LCD panel which is rear-projected onto the large area viewing surface. The output illumination of each input device uniquely identifies the source and the function to be performed and is projected by the user as a modifiable light spot upon the display surface. Projected illumination from all of the input devices falls upon a receiving subsystem, which generates signals representative of the total optical input of each of the light spots in a pseudo image. This pseudo image has position sensing distortions due to frequency dependence, electronic signal drift, and non-linear sensing capability in the sensing electronics, so that the data coordinates produced for the pseudo image have a non-linear one-to-one correspondence with the pixel location in the display image of the position of the input light spot. It is an object of this invention to provide a method of correcting the position of a position location indicator in the large area display system in response to the pseudo image coordinates. The signals from the sensor are converted into pseudo image data coordinates representative of each light spot. The data coordinates are adjusted for frequency dependence and for signal drift due to the electronics of the system, and are then looked up in a compressed table of calibration data to determine screen coordinates which correspond to the data coordinates. The change in position of the screen coordinates is smoothed to eliminate jitter, and a position location indicator which closely conforms to the user input location is provided to the display system for projection upon the screen. One aspect of the invention is based on the recognition that the motion responsive to an input of the pen should be adjusted or smoothed relative to the magnitude of the change in position, to reduce jitter in small movements. This problem is compounded by the recognition that a conventional time-based average smoothing function will introduce sluggishness in the response, and an amplitude-based filtering circuit may add additional complexity to the hardware of the system. This problem may be solved by multiplying the change in distance by a smoothing function based on an exponential function which is near zero for small movements, and approaches 1.0 as the magnitude of the distance change gets large, in order to keep the pen responsive. The present invention will be described further, by way of examples, with reference to the accompanying drawings, in which:- Fig. 1 shows a large area display terminal, Fig. 2 describes an implementation using a general method of one embodiment of the invention in a large area writing system, Fig. 3 is a block schematic of the sensing and position location indicator control electronics for a single light pen, Fig. 3(a) is a timing diagram associated with the sampling electronics, Fig. 4 shows a frequency band of frequencies passed by a narrowband filter for a single pen, Fig. 5 shows a calibration pen that may be used to input normalization and calibration points, Fig. 6 shows a method for normalizing the output values for the frequencies indicative of different function inputs, Fig. 7 shows a method for renormalizing the screen at a time after the initial normalization process, Fig. 8 shows a screen coordinate grid of lines of constant pixel coordinates, Fig. 9 shows a voltage grid of lines of constant voltage as detected by the sensor in the pseudo image, Fig. 10 illustrates the relationship between the two sets of dimensions for the system, Fig. 11 shows a method for conversion to the screen coordinate grid from the voltage grid by calibrating the response to the system for a known set of input points, Fig. 12 shows the steps in building a table of calibration data, Fig. 13 shows the steps in compressing the values from the calibration table into a single table of X and Y rows for a pen, Fig. 14 shows the steps in compressing a row for the compressed calibration table, Fig. 15 shows the steps in finding maxdelta of a row, Fig. 16 shows the steps in finding the necessary number of bits to represent the deltas in a row, Fig. 17 shows the steps in packing a bit field into the compressed table, Fig. 18 shows the steps for the looking up and interpolating a screen position using the compressed table, and Fig. 19 shows the steps in jitter smoothing the response of the system. Turning now to the drawings, Fig. 1 shows a large area display terminal 10 in the form of a rear projection system comprising a one million pixel liquid crystal light valve panel 12, controlled by a computer 29, such as a SPARCStation-2 from Sun Microsystems, of Mountain View, California. The panel 12 is interposed between a high intensity projection lamp 14, focused by Fresnel lens 16, and a projection lens 18. The image is magnified about fivefold to illuminate, at about twenty spots per inch (2,54 cm), a slightly convex curved (as viewed) display screen 20 having an area of about three feet (91.44 cm) by five feet ( 152.4 cm). One or more wireless light pens 22 (two shown) project a beam of light from a light source onto the front surface of the screen 20 at a location where the user desires to indicate a position location, such as a pointer. It would be practical either to maintain the light pen in contact with the surface being written upon, or to project the light spot from several feet away from the screen. It should be noted that as a remote pen projects a larger light spot, the effective zone of accurate usage gets closer to the center of the screen because too much light falls off the screen. The user's feedback is generated by the electronic system and presented as a position location indicator on the display screen in response to the information obtained by the receiving subsystem 23. The position indicating feedback may take the form of a cursor located on the screen 20 at the pixel location ( x , y ) corresponding to the position location pointed to by the light pen. The position location indicator at ( x , y ) is displayed with the image. The receiving subsystem 23 comprises a large curvature demagnification lens 24, which directs an image of the light spot falling upon the screen 20 from the user's light pen, through a filter 26 which blocks out spurious light and then focuses the spot upon a position sensing integrating detector 28, such as a photodiode. Position sensing photodiode 28, is a continuous dual axis position sensor that provides both X and Y axis position information. It senses the centroid of a light spot and provides continuous analog outputs as the spot traverses the active area. Suitable electronic instrumentation allows the X and Y coordinates for each pen to be separated and displayed as a position location indicator upon the projection screen 20. The electronic instrumentation controlling the input pens is more fully described in pending European Patent Application No. 91 310 077.2 (Publication No. 0 484 160 A2). The flowchart of Fig. 2 describes a method for improving the response to an input in a large area writing system, using a general method in accordance with an embodiment of the invention. The step in box 30 enters data representing a location pointed to by the light pen, as shown by pen 22 in Fig. 1. The step in box 32 finds the input data coordinates of the screen (X v , Y v ) at the input location, as described in Fig. 3. The step in box 34, adjusts the input data coordinates to normalize for the function indicated, as described in relation to Fig. 6, and for drift over time, as described in relation to Fig. 7, to produce normalized data coordinates (X v ', Y v '). The step in box 36 adjusts the normalized data coordinates (X v ', Y v ') for the distortion of the pseudo image detected by the sensor electronics. Locations corresponding to locations surrounding the normalized data coordinates (X v ', Y v ') are found from a compressed table of calibration data, and interpolation between these points determines the screen coordinates (X s , Y s ), as described in relation to Fig. 18. The step in box 38 then jitter smooths the movement as described in relation to Fig. 19, to produce a corrected position location indicator at display coordinates ( x , y ) for response by the system in the step in box 40. The circuit of Fig. 3 schematically illustrates a technique wherein narrowband filters 92 and 93 are used to separate the X and Y positions of one light pen from the X and Y positions of another and provide digital signals indicative of each of the X and Y positions. Although only a single pen operated at a single frequency is shown and described, it should be understood that a number of pens (e.g., three) can be used simultaneously and independently. Each pen may be identified by a central identification frequency. Multiple functions for each pen are identified by function frequencies closely clustered about each identification frequency. The position sensing photodiode 28 includes four (two opposed pairs) electrodes 76 (X + ), 78 (X-), 80 (Y + ) and 82 (Y-), each of which generates a current signal as a function of the light intensity and position of the centroid of the light spot projected thereon. If several pens are being used, they simultaneously project optical signals chopped at different frequencies. The output signals from the detector electrodes will be a complex superposition of square waves at those frequencies. These complex waves will be separated in the circuit described below wherein only representative signals for the X coordinates are shown. It should be understood that the Y coordinate signals are handled in a similar manner. X + and X- square wave current signals are converted to voltage signals and amplified at amplifiers 84 and 86. Initially the principal noise in the system is the detector noise so care is taken to amplify the signal to a usable level without introducing noise to the signal. Then both signals pass to standard sum and difference amplifiers 88 and 90 for determining location. The sum of X + and X- will always have the same phase relationship to the pen modulation and will be a fairly large signal, while the difference can either be in phase (on one side of the center of the detector) or 180° out of phase (on the opposite side of center). Next, the X sum and X diff signals, which include fundamental and higher level harmonic frequency components (since they are comprised of square waves), are each passed through a switched capacitor narrow bandpass filters 92 and 94 tuned to a very narrow predetermined frequency range by a crystal controlled clock 95 so as to pass the cluster of frequencies for a specific pen. The output of the bandpass filters are sine waves at the first harmonic frequency. Once again the output signals are amplified by amplifiers 96 and 98 in order to be able to more easily extract the amplitude and frequency information representative of position and function information for the specific pen. The X sum and X diff sine wave signals then pass to sample and hold circuits 100 and 102 controlled by a signal shunted from the X sum sine wave. The shunted signal (C) (note Fig. 3a) fires a zero crossing detector 104 so that each time the sine wave (C) crosses zero, the output signal changes between low and high (0 to 5 volts) as represented by signal (D). When signal (D) goes from high to low it fires a controlled time delay circuit 106 whose output is signal (E), a negative going pulse approximately 2 µsec in duration, which coincides with the next peak of the sine wave. The time delay is set to correspond to 1/4 cycle of the mean frequency of the cluster. Signal (E) controls the sampling of sample and hold circuits 100 and 102, so that at every negative going pulse a peak is sampled. Since the X sum , X diff , Y sum , and Y diff signals are all generated by a single light pen, it is sufficient to generate a single timing signal (E) for all of these signals. The output signal (F), from the sample and hold circuits, is a stair-stepped DC voltage indicative of the amplitude of the X sum and X diff sine wave signals (C and C'), and representative of the light spot position. RC filters 108 and 110 remove noise from the DC signal (F). The DC signals (F) pass to an analog multiplexer 112 which scans them and sequentially passes the X sum , X diff , Y sum and Y diff signals through a unity gain buffer 113 to an A/D converter 114 which converts each sequentially received analog voltage signal (F) and converts it into a fourteen bit digital signal. The square wave signal (D) is additionally used to differentiate among the closely clustered frequencies to determine the invoked function. A portion of the signal is tapped off and sent to a frequency-to-voltage converter 118 whose output passes to four comparators 120, 122, 124, and 126, each set at a different threshold in order to determine the exact frequency of the signal for identifying the button state of the light pen. Output from the controller 116 feeds back channel select commands to the multiplexer 112, feeds convert commands to the A/D converter 114, and feeds the data point information for the single pen to the DSP. Since both sum and difference signals vary linearly with respect to the intensity of the light spot, a division step will yield generalized input data coordinate values (X v and Y v ): X v = X diff X sum and Y v = Y diff Y sum . The pseudo image data coordinates X v and Y v eliminate light intensity variability going to battery power shifts, the angle at which the light pen is held with respect to the screen, and the distance of the light pen from the center of the screen. X v and Y v have a non-linear one-to-one correspondence with the X s and Y s screen coordinates due to the screen non-linear voltage variance, non-linearities in the imaging lens, non-linearities intrinsic to the detection electronics, and other factors. Although the above embodiment of the present invention has been described with reference to a specific frequency generating circuit and a specific discrimination circuit, it is possible that other suitable circuits could be used within the purview of this invention. Fig. 4 shows frequency band 130 of frequencies passed by a narrowband filter for a single pen, such as filter 92 in Fig. 3. The band is centered around a central frequency f i , with the function identifying frequencies being identified such as by a comparator 120, 122, 124, and 126 of Fig. 3. The frequency bands for the multiple pens are significantly separated, and the function identifying frequencies for each pen are closely clustered in these frequency bands. Frequency 132 is associated with the front button or the tip switch on the light pen, since pressing the pen tip against the screen activates a switch that indicates the same function as the front button. Frequency 134 is associated with the rear button on the light pen, frequency 136 is associated with the middle button on the light pen, and frequency 138 is associated with the tracking signal of the pen. Under ideal conditions, the different frequencies identifying different function states would cause no deviation in the mapping of input data coordinates (X v , Y v ) to screen coordinates (X s , Y s ). In implementation, however, the location identifying circuitry has some frequency dependence which may cause some distortion in the detection of pseudo image data coordinates from one state to the next. For example, pushing a button on a pen held stationary at the edge of the screen may cause the cursor responsive to that pen to noticeably jump. A calibration pen 140 that may be used to input normalization and calibration points is shown in Fig. 5, pointing to location 144 on screen 143. Pen 140 has a modifiable light source which operates at multiple frequencies, representing multiple functions for multiple pens. For example, a system utilizing three pens, each with four different function states, must obtain full calibration data for one frequency of each pen, and must obtain normalization data for the other three frequencies of each pen. A pen collar 142 assists the user in holding the calibration pen 140 steadily perpendicular to screen 143 at location 144. The calibration pen 140 may scan through each of the twelve frequencies while being held at each normalization point, as described below. The flowchart of Fig. 6 shows a procedure for normalizing the data coordinate values for the frequencies indicative of different button states. Although normalization for only a single pen is shown and described, it should be understood that a number of pens (e.g., three) can be used simultaneously and independently. In the step in box 146, input data coordinates (X v track , Y v track ) at the four corners of screen 20 are detected for a pen in tracking mode. In the step in box 147, the corner input data coordinates (X v front , Y v front ) are detected for a pen in front button or tip mode. In the step in box 148, the front button normalization factors NormFx and NormFy are computed using the data collected at the corners. This can be deduced by dividing the pen coordinate value for the front button state by the pen coordinate value at the same point for the tracking state, and averaging across the four corners as follows: The step in box 149 detects input data coordinates (X v middle , Y v middle ) at each of the four corner points for a pen in middle button mode. Then the normalization factors NormMx and NormMy are computed in the step in box 150 in the same manner as the front button normalization factors above. The step in box 151 detects data coordinates (X v rear ,Y v rea ) for the four corners for a pen in rear button mode, and finally computes the normalization factor NormRx and NormRy in the step in box 152 in the same manner as the front button normalization factors above. During operation, then, to get coordinates for an input when a mode other than tracking mode is indicated, the system divides the input data coordinate reading by the normalization factor for that function mode. For example, if the system senses for tracking mode (X v , Y v ), if the pen is in front button mode the system will compute: After some time, the response of the system may deviate from the original measured values. For example, as resistors and amplifiers in the circuit of Fig. 3 heat up, their response may be slightly different. Even the tracking state values may drift from the original values. Since the main calibration and normalization procedure is designed to be done infrequently, the response of the system to the pen input may be affected by these later, slight drifts in the electronic signal. Since the hardware for the X path and the Y path is different, the amount of drift in the system response for X and Y values may differ as well, and so should be calculated separately. The flowchart of Fig. 7 shows a method for renormalizing the screen at a time after the initial normalization process to adjust for changes in the response, such as for drifts in the electronic signal. The step in box 160 detects input data coordinates for the corners with the pen in front or tip button mode. It is easier for the user, who may not have a calibration pen 140 available, to effectively point directly at a spot on the screen by pressing a light pen against the screen, which activates the tip switch. Since the overall difference in gain of the system should not be significantly affected by the frequency, it is acceptable to compute the renormalization factor from any of the modes. The step in box 162 retrieves the original data for the corner points in front button mode. The step in box 164 computes the overall renormalization factors for the system as follows: Then when the system senses a point X v with the pen in tracking mode, the coordinates will be normalized to: and if the pen is in front button mode: 2. Calibration The non-linear properties of the correspondence between the input data coordinates (X v , Y v ) and the screen coordinates (X s , Y s ) may be illustrated by reference to the following Figs. 7, 8 and 9. Fig. 8 shows a screen coordinate grid 170 with lines of constant pixel coordinates shown on screen 178. X readings are taken along the horizontal axis so that lines of constant X s value are vertical across the screen. Y readings are taken along the vertical axis so that lines of constant Y s value are horizontal across the screen. When a user points with a pen to point 172, the X s coordinate should be the same as when the user points to point 174, on a vertical line 176 of constant X value. The Y s coordinate would be the same for two points on a horizontal line of constant Y value. In contrast, Fig. 9 shows a voltage grid 180 with lines of constant voltage as detected by the sensor 26 plotted across screen 178. Constant V x voltage readings are in an approximate vertical direction, and constant V y voltage readings are in an approximate horizontal direction. The voltage on the screen varies in a smooth, but non-linear fashion: V x and V y voltage lines are slightly skewed in both directions and bent near the corners of the screen, and equal increments in voltage are not equally spaced across the screen. The input data coordinates X v and Y v for the pseudo image are derived from the input voltages as described in relation to Fig. 3, so that lines of constant X v or Y v will be skewed in the same manner as the voltage grid. Line 176 shows a line of a constant X s as shown in Fig. 8. The two points 172 and 174 along line 176 have the same X s coordinate. However, lines of constant voltage do not follow the lines of constant pen coordinate, so the input data coordinate X v1 sensed when the pen points to point 172 will be different than the input data coordinate X v2 sensed when the pen points to point 174. Readings for Y v input data coordinates are similarly varied along horizontal lines of constant Y s . Fig. 10 illustrates the relationship between the two sets of dimensions for the system. A portion of the screen 178 is shown in Fig. 10, with lines of constant input data coordinates as derived from the screen voltage, such as line 182 with a constant input data coordinate of X v = -0.7215, and lines of constant screen coordinates, such as line 184 of X s = 32. Point 186 has screen coordinates of (32,84), and point 188 has screen coordinates of (35,78). However, the X input data coordinates for each of these points is the same, since they both lie on a line of constant input data coordinate X v = -0.7835. From a simple sensor reading, the computer would not be able to distinguish a difference between the x coordinate reading of point 188 and the x coordinate reading of point 186. The system of the invention compensates for the non-linear relationship between the pen input coordinates and the input data coordinate grid by a calibration procedure which calibrates the response of the system to the input data coordinate grid for multiple points with known pen coordinates. A calibration pen 140 as shown in Fig. 5 may be used to input calibration points at the tracking frequency for each light pen. For example, a system utilizing three pens must calibrate for three different tracking frequencies. The calibration pen 140 scans through each of the frequencies while being held at each calibration point. As shown in Fig. 10, it is necessary to convert from input data coordinates (X v , Y v ) sensed by the system electronics to corresponding screen coordinates (X s , Y s ) for response by the computer system. The method of the invention for this conversion involves calibrating the response of the system for a known set of input locations. The steps for this procedure are shown in the flowchart of Fig. 11. In the step in box 200, a set of input data coordinates (X v , Y v ) corresponding to known, regular (X s , Y s ) locations is recorded. For example, the image projection subsystem may project a grid of regularly spaced calibration points upon the display screen for the user to point to with a calibration pen 140 or with each light pen of the system. The input data coordinates of each point are sequentially measured as the light pen is held at each calibration location. In the step of box 202, a function is determined which provides a conversion from the input data coordinates to the known screen coordinates. If the system electronics were perfectly linear, converting from input data values reported by the sensor to screen coordinates corresponding to the pixel location of the pen tip would simply involve a scaling and a translation, i.e., X s = a + b * X v and Y s = c + d * Y v where the coefficients a, b, c, and d could be computed by a simple calibration procedure in which the user would point with the pen to the known calibration points (X s , Y s ), the input data coordinates (X v , Y v ) would be observed, and values for a, b, c, and d computed by solving a linear system with two equations and two unknowns. However, the system electronics are not linear, so a more complicated method for converting input data coordinates to screen coordinates must be used. The most obvious approach is to replace the previous equations with something more complicated, such as: X s = a + b * X v + c * Y v + d* X v * Y v and Y s = e + f *X v + g * Y v + h* X v * Y v , or perhaps something with even higher order terms. Calibration would involve pointing the pen at places with known screen coordinates and measuring the input data coordinates, and the coefficients a, b, etc. could be computed using least squares. This approach does not work well for two reasons. First of all, the conversion from input data coordinates to screen coordinates is not well approximated by such simple functions. Secondly, useful information is thrown away, so that if calibration reveals that (X s , Y s ) corresponds to (X v , Y v ), the above conversion procedure would not necessarily map (X s , Y s ) to (X v , Y v ), because least squares do not (in general) pass through the input points. So instead of least squares, standard cubic spline interpolating techniques are used. In the method of the invention, a standard technique as described in Computer Methods for Mathematical Computations , by Forsythe, Malcolm, and Moler (1st ed. 1977), at pages 70-79, the disclosure of which is hereby incorporated by reference, is used to derive the spline function. The cubic splines pass through the calibration input points, which become joints of the cubic spline approximating function. During the calibration procedure, the user points the pen at n*m points, which are equally spaced in a lattice. In the present implementation, 17 x 12 points regularly spaced throughout the screen are usually used. If these points are used as the joints, then a simple equally spaced two-dimensional cubic spline function (sometimes called a tensor or bicubic spline) may be used to convert screen coordinates into input data coordinates. These splines do not throw any information away -- if calibration reveals that (X s , Y s ) corresponds to (X v ,Y v ), then (X s , Y s ) will be converted to exactly (X v , Y v ). A spline function is used to convert screen coordinates to input data coordinates. During regular use of the system, however, it is necessary to go from input data coordinates (X v , Y v ) to screen coordinates (X s , Y s ) -- that is, given an input data coordinate from the sensor, the screen coordinates must be determined. What is needed is the inverse of the spline function. Rather than using the spline function during the actual conversion process, a look-up table is computed. This is accomplished in the step in box 204, which builds a table of input data coordinate-to-screen values using the inverse of the spline function. Table look-up was chosen because of its speed advantage. Because the conversion operation has to run about 100 times per second during on-line operation, conversion speed is an important consideration. The steps in boxes 202 and 204 may be done off-line, building a table (typically 112 by 78) that contains input data coordinate-to-screen coordinate mappings. It should be noted that even a coarse grid computation would require a significant amount of time if attempted on-line; off-line, the additional time required to do a finer grid is warranted by the increased accuracy of the system. During on-line operation the system converts from input data coordinates to screen coordinates using linear interpolation from this table. Fig. 12 shows the steps in building the calibration table. Although calibration for only a single pen is shown and described, it should be understood that a number of pens (e.g., three) may be used simultaneously and independently. The input data coordinates for known calibration points are recorded in the step in box 210. Standard techniques for determining cubic splines are used to compute a spline function S in the step in box 212 that takes screen coordinates (X s , Y s ), and produces input data coordinates (X v , Y v ). If the screen coordinate position is one of the positions used for calibration in the step in box 210, the output is exactly the detected input data coordinate. Otherwise it is an interpolation according to the cubic spline of the detected input data coordinate. In the step in box 214, a regular, closely-spaced mesh of input data coordinates is chosen. In the step in box 216, for each (X v , Y v ) in the mesh the spline function S is used to find an (X s , Y s ) with the property that S[(X s , Y s )] = (X v , Y v ). In other words, a table is created which assigns to each (X v , Y v ) a screen value (X s , Y s ). This defines a mapping from (X v , Y v ) to (X s , Y s ) which is the inverse of the spline function S. It is important to note that the input calibration points are equally spaced -- if the input points were not constrained to be equally spaced, the standard algorithms for tensor splines as shown in step 212 would not be applicable. The step in box 218 writes the calibration table. The calibration table header is written with the maximum and minimum values of X v and Y v data coordinates (X max , Y max , X min ,Y min ), the number of rows (number of different X input data coordinate values numX , which range from X max to X min ), and number of columns (number of different Y data coordinate values numY ) . Each row has a fixed X v value. The first row has (X s , Y s ) values for (X min , Y v ) where Y v ranges from Y min to Y max .) The last row has (X s , Y s ) value for X max . Each pen in the system will have tables representing the X s and the Y s values at points on the screen. Each table for each pen is built separately. When the calibration pen is used, data for the tables for each pen are automatically separated as different frequencies are generated at each point. The table for each coordinate of each pen is about 30,000 bytes long in uncompressed form. Six tables, or three tables each with X s and Y s values for one pen, are far too much data to store on a reasonably priced expansion board with a DSP processor, and the host computer's main memory is too remote to efficiently access tables stored there. Therefore, it is desirable for the tables to be compressed to be stored on the DSP expansion board. The compression technique according to the invention is based on storing the differences, or deltas, of successive table entries. While the following discussion describes a single table, there may be several tables compressed and stored on the expansion board, each corresponding to a light pen having a given frequency family. Each row in the compressed table has a header, followed by a variably sized set of bit fields of packed integers. Each row of the compressed table corresponds to a row of the original table, and is structured as follows length, first, mindelta, numBits, delta [1], ..., delta [n] ; where length is the total number of storage words for the row, and first is the value of the first element in the row. mindelta is a constant for the row. All the succeeding values are increments to first compensated by subtracting mindelta. This ensures that all the delta[j] values are positive, so that no additional bit is needed to represent the sign of delta [ j ]. numBits is the number of bits used to represent each delta [ j ] in the row. Each delta [ j ] is stored in numBits bits, packed into 24-bit storage words. The delta entries following the header in each row are computed as follows: delta [i] = row [i] - row[i-1] - mindelta ; so that delta [ j ] is the difference between adjacent row elements. The deltas are stored in bit slices of 2,3,4,6, 8 or 12 bits, chosen so that they pack efficiently into the 24 bit words used by the processor. These bit slice sizes allow representation of delta values of up to 4, 8, 16, 64, 256 or 4096, respectively. The magnitude of the largest delta in the row determines the bit slice size for that row. The table look-up during decompression may be optimized by combining the tables for x and y coordinates during compression. Each row of the compressed table contains either values of X s or Y s . The X s and Y s rows are interleaved in order to optimize the computation of the row addresses during look-up. The rows are stored as follows: X s row 0 Y s row 0 X s row 1 Y s row 1 , and so on. The flowchart of Fig. 13 describes the steps in compressing the values from the calibration table into a single table of X s and Y s rows for each pen. The step in box 220 reads the X min , X max , and numX values from the header of the calibration table, where X min is the minimum value of X in the table, X max is the maximum value of X in the table, and numX is the total number of X values in the table. The step in box 222 reads the Y min , Y max , and numY values from the calibration table. The step in box 223 computes the increment between adjacent rows and columns: X inc = ( X max - X min ) numX and Y inc = ( Y max - Y min ) numY . The step in box 224 writes the header for the compressed table, ( X min , X max , X inc , Y min , Y max , Y inc , numX , numY ). The step in box 226 sets a counter i to 0. The step in box 228 tests for i less than numY, to see if all the rows have been completed. If there are still more rows to do, the step in box 230 resets a counter j . The step in box 232 checks if all the columns in the given row have been read. If there are still more values to read, the step in box 234 reads the jth element of the current row i into the row array arrayX [ j ] or arrayY [ j ]. The step in box 236 updates counter j . If all the values for the current row have been entered, the step in box 238 compresses the row i stored in arrayX . The step in box 240 compresses the row i of values stored in arrayY . The steps of 238 and 240 are interchangeable. The step in box 242 updates counter i , and returns to the step in box 228 to see if all the rows have been compressed. If all the rows for that pen have been compressed, the compressed table is stored in memory on the expansion board in the step in box 244. During system operation, the tables are stored in a file in main memory of the computer, and downloaded to the DSP after system boot. The flowchart of Fig. 14 shows the steps in compressing a row i as described in boxes 238 and 240 of Fig. 13. The step in box 252 finds maxdelta, or the largest difference between any two adjacent points in row i . The step in box 254 finds mindelta, or the smallest difference between any two adjacent points in row i . The step in box 256 writes mindelta to the row i header. The step in box 258 writes (-mindelta) in the delta [0] location. This is so that during decompression, when each element is computed by [previous element + delta [i] - mindelta ] , the first element, if the delta for delta [0] = -mindelta, is [ first + delta [0] + mindelta ] , or simply first. The step in box 260 determines the number of bits numBits that will be needed to represent the largest delta for the current row i . The step in box 262 finds the total number of words that will be used to store this row i , and the step in box 264 writes this total length to the row i header. The step in box 266 writes numBits into the row i header. The step in box 268 packs the first delta bit field in delta [0] into the compressed row storage. The step in box 270 sets a counter j to 1, and the step in box 272 checks to see if all the values for row i have been compressed. If there are more values to compress, the step in box 274 finds the delta [j] to the next value, subtracting mindelta to ensure that the result will be a positive value. The step in 276 then packs the new delta [j] field into the compressed row i . The step in box 277 updates the counter, and returns to box 272 to check to see if there are remaining values in row i . If all the values in that row have been compressed, the compressed row i is returned. The flowchart of Fig. 15 shows the steps in finding maxdelta for a row i as described in box 252 of Fig. 14. The step in box 288 sets a preliminary value of maxdelta = -1000. The step in box 290 sets a counter i to 1. The step in box 292 checks to see if all the values in row i have been checked. If there are more values to check, the step in box 294 computes the delta to the next value. The step in box 296 checks to see if delta is greater than the current maxdelta . If it is, the new delta is stored as maxdelta in the step in box 298. The counter is updated in the step in box 300. When all the values in row i have been checked, the step in box 292 returns maxdelta . The same steps in Fig. 15 used to find the maxdelta may also be used to find mindelta , as described in box 254 of Fig. 14. To use these steps, the step in box 288 sets mindelta = 1000. After the delta is computed in the step in box 284, the step in box 296 checks to see if the new delta is less than the current mindelta . If so, the new delta is stored as mindelta. The flowchart of Fig. 16 shows the steps in finding the necessary number of bits numBits to represent the delta values in a row i , as described in box 260 of Fig. 14. The step in box 310 sets a counter to 0. The step in 312 finds the difference between maxdelta and mindelta for row i , and stores it in a temporary storage n . The step in box 314 checks to see if n is greater than zero. If it is, the step in box 316 divides n in half and discards the non-integer portion of the result. The counter is updated in the step in box 318. When the values of n is not greater than zero, the value of the counter is returned specifying the number of bits numBits needed to represent the deltas in the row i . The flowchart of Fig. 17 shows the steps in packing a bit field into the compressed table as described in box 268 and box 276 of Fig. 14. The step in box 320 allocates temporary storage numBytes to hold the complete row of bit fields. The object of the packing step is to put the bit field for row i into the proper place in the numBytes of temporary storage. The number of bytes of temporary storage is computed as: numBytes = ( numBits * ( numY + 1 ) + 7)/8 . The step in box 322 sets a counter b = 0. The step in box 321 gets the value of the bit field: value = delta [i] . The step in box 324 checks to see if all the bits have been packed. If there are remaining bits, the step in box 326 finds the bit position of bit b as: position = i * numBits + b. The step in box 328 converts the bit position into the byte position in the temporary storage: byteIndex = position /8 The step in box 330 finds the current bit in the field to operate on, bitOffset , by shifting the bits in value . byteIndex and bitOffset together indicate which bit in the temporary storage should be set to the same value as bit b of the current bit field. The bitOffset is complemented by 7 so that, for example, bit 0 of a field is put into bit 7 of a byte, which is the most significant byte. This makes the bit fields read correctly when scanned from left to right, even if they cross byte boundaries. Finally the value bitval of the current bit b is found in the step in box 331. The step in box 332 checks whether the current bit bitval is 1; if it is, the step in box 334 sets the current bit in the packed array. If it is not, the step in box 336 clears the current bit value in the array. The step in box 338 updates the counter value, and returns to box 324 to check for all bits. During normal operation, it is possible to find a particular table row by putting the address of the first row into an address register, and then incrementing by the length value in each row header until the proper row is found. Placing the length field first in the row header makes this easier. The computation of the X s coordinate uses four table elements, table[i,j], table[i + 1,j], table[i,j+ 1], and table[i + 1,j+ 1]. The Y s coordinate uses four similar table elements, for a total of eight look-ups. It is easy to compute table [i,j] and table[i,j 1] together because table[i,j] is the previous value computed when computing table [i, j+ 1]. Since the rows are interleaved, X s row 0 Y s row 0 X s row 1 Y s row 1, and so on, the row addresses may be used to find both X s and Y s values. The first row address I is saved and used to step to Y s row I, then X s row I + 1, and finally to Y s row I + 1. Fig. 18 shows the steps in the table look-up procedure for the optimized compressed table. The step in box 340 computes the table indices I and J by dividing the normalized input data coordinates (X v ', Y v ') by the increment of the table, since each table line represents a line of constant X v or Y v input data coordinates, and there is a fixed increment between each line. O and V are the remainders from dividing the X v 'and Y v ' normalized data coordinates, respectively, to get I and J, respectively. The step in box 342 computes the address of X s row 1. The step in box 344 computes the J and J + 1 elements of X s row I. The step in box 346 increments the row address so it is the address of Y s row I. The step in box 348 computes the J and J + 1 elements of Y s row I. The step in box 350 increments the row address so it is the address of X s row I + 1. The step in box 352 computes the J and J + 1 elements of X s row I + 1. The step in box 354 increments the row address so that it is now the address of Y s row I + 1. The step in box 356 computes the J and J + 1 elements of Y s row I + 1. The step in box 358 uses the remainders O and V to compute the screen coordinates (X s , Y s ) from these eight elements using weighted averages. These screen coordinates may be used to locate a position location indicator. The flowchart of Fig. 19 shows the steps required to smooth "jitter" in the detected Pen Position Smoothing Map Actual delta smoothdelta 0 0 1 0 2 1 3 1 4 2 5 3 6 4 7 5 8 6 9 8 10 9 11 10 12 11 13 12 14 13 15 14 16 15 17 16 18 18 pen location, such as typically caused by residual noise in the electronics. Jitter smoothing is essentially a software filtering. The purpose of smoothing is to adjust the motion of a response based on the magnitude of the distance that the input has changed. The smoothing function helps lessen the effects of very small movements such as might be caused by signal noise in the electronic circuitry or by unintentional slight movement in the hand of a user holding a pen, and helps to keep small intentional movements from looking "jerky." For small motions more filtering is applied to reduce jitter, and for large motions little or no filtering is applied so the pen remains responsive to large movements. A mapping for such a smoothing function can be found in Table 1. Although the following description describes smoothing for the x -coordinate change, it is understood that both the x and y coordinate position changes may be similarly smoothed, independently or in combination. The step in box 390 takes a new screen coordinate X s . In the step in box 392, the last x position is retrieved from memory. The step in box 394 computes the magnitude of the change in position delta x from last x to X s . The step in box 396 checks to see if delta x is smaller than the table size. If delta x is larger than the table, then the smoothdelta is given the same value delta x in the step in box 400. If delta x is smaller than the table size, the step in box 389 finds the smoothdelta x value corresponding to that delta x from a Pen Position Smoothing Map, as shown in Table 1. The step in box 402 checks if the X s value is greater than the last x position. If it is, the next position x is computed in the step in box 404 to be x = last x + smoothdelta x . If X s is less than last x , the step in box 406 finds x = last x - smoothdelta x . The step in box 408 stores this new value as last x in anticipation of a further change in position. The smoothed display coordinate x for the position location indicator is returned to the computer for response in the step in box 410. A cursor at the last x position at the start of the computation will be moved to the x position in response to tracking, for example. Note that delta x is determined by the last x reported value, and the new value new x from the input system. Errors introduced by smoothing therefore do not compound and slow the response of the system. The values of the Pen Position Smoothing Map according to the invention, as shown in Table 1, are derived from an exponential function of delta, in this case an approximation of an exponential function: next = last + delta * F ( delta ) ; or in this case x = last x + delta x * (1-e-_ delta x ) . In the present invention, e -0.02 delta is used. This function approximates the output that would be seen from an ordinary lowpass filter. However, a filter implemented in hardware might cause the response to appear sluggish. Likewise, conventional methods of smoothing using weighted averages, or exponential smoothing as a function of time, might also contribute to a sluggish response. The smooth delta values based on the above function have change thresholds at 9 and 18 pixels. Values of smoothdelta are two pixels behind the actual delta for changes of from 1 to 8 pixels, and one behind for 9 to 17 pixel changes. If the input is 18 or more pixels different, smoothdelta matches delta. Table 2 shows an example of the effects of the smoothing operation on the x coordinate of a position location indicator tracking a moving pen. Although only the x Pen Movement Smothing Results Results of Jitter Smoothing Input X s Output x 0 0 2 1 4 2 7 5 8 6 8 7 8 7 7 7 6 7 4 6 4 5 0 2 0 1 25 25 35 34 ... ... coordinate is described in the following example, it is clear that the smoothing operation may be performed for both the x and y coordinates. The first move, from position 0 to position 2 generates a delta x of 2, and smoothdelta x can be seen from the map to be 1, so the x position is 1. If the two pixel variation were caused by an unsteady hand, for example, the position location indicator would not be significantly affected. For the next move to position 4, delta x = 3, and the smoothed x position will be [ last x + smoothdelta x ], or [1 + 1] = 2. If the pen should go to 7, the x position is 5. It can be seen from this example that the position location indicator does not always match the exact location of the input. When the input stays motionless, for example, when it sits at pixel 8, the smoothed output position x gets to pixel 7, but then delta x remains at 1 which corresponds to a smoothdelta x of 0, resulting in no movement. A one pixel difference between the input point and the position location indicator will not be distinguishable to the user, although a sluggish or jittery pen movement probably would be. In one embodiment the calibration table is computed infrequently, at the beginning of operation of the system, and stores the calibration information in compressed tables. Later changes in the system electronics are accounted for by normalization procedures. In another embodiment of the invention, the compressed calibration table or portions of the table could be revised at a later time by entering new calibration data and adjusting the spline function, and making corrections to the table accordingly. Another contemplated modification includes adjusting the calibration pen to produce the average frequency of the band for each pen, so that the calibration and compression tables are built for the average frequency. As seen in Fig. 16, none of the current function frequencies fall directly at the average frequency. It is possible that the calibration might be done at the average frequency rather than the fringe frequencies, and a multiplicative factor determined by a method similar to that described in relation to Fig. 6 be used to differentiate among different function frequency responses.

Claims: A method of providing information to an interactive system, comprising: (A) projecting information upon a screen (20) with projection means (12, 14, 16, 18) while a user projects a light image at an input position on the screen (20) with a light source; (B) with illumination detecting means (23, 24, 26, 28), detecting the light image and producing input position information indicating coordinates of the input position; and (C) providing the input position information to a computer (29); wherein the computer has stored data indicative of a first position of a location indicator on the screen (20); (D) determining the magnitude of the difference in position between said first position and the coordinates indicated by the input position information; (E) determining location indicator coordinates indicative of a second position of the location indicator on the screen (20); and (F) projecting the location indicator onto the screen (20) at the location indicator coordinates indicative of the second position, the location indicator being closely conformed with the input position the method is further characterised in that (G) a change factor is determined in response to said difference magnitude; and step (E) is performed according to said change factor. The method as claimed in claim 1, wherein (E) comprises using an exponential function based on said difference magnitude. A method as claimed in claim 1, wherein (E) further comprises determining said change factor in response to said difference magnitude, wherein said change factor is smaller than said difference magnitude when said difference magnitude is less than a change threshold, and said change factor is equal to said difference magnitude when said difference magnitude is greater than said change threshold. A method as claimed in claim 3, wherein (E) further comprises determining said change factor by an exponential function based on said difference magnitude, wherein said change threshold is based upon the difference magnitude which causes the value of the exponential function to equal approximately one. A method as claimed in any preceding claim in which the projection means (12, 14, 16, 18), projects information upon one side of the screen (20) and the user projects the light image upon the opposite side of the screen (20). An interactive system employing a method of providing information to the interactive system, the method being as claimed in any one of claims 1 to 5.

Inventors: ELROD SCOTT A, GOLDBERG DAVID, WELCH BRENT B, ELROD, SCOTT A., GOLDBERG, DAVID, WELCH, BRENT B.
Applicants: XEROX CORP, XEROX CORPORATION
Application year: 1993
Main classification: G06K11
IPC codes: G06F3