Optical mouse with shade compensation and its shade compensation method
Granted 24 Jun 2008 · 1 office action
Assignee: Sunplus Technology Co., Ltd.
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Yu-Lin Chen, Chia-Chun Lin · Examiner: Chanh D. Nguyen · AU 2629 · TC 2600
Life of the application
8 dated eventsAbstract
An optical mouse, with shade compensation, has a light source, a sensor and a controller. The light source illuminates a sampling plane of a mouse. The sensor consists of a 2-dimensional array of sensing elements to capture an image from the sampling plane and temporarily store the image into a 2-dimensional array of pixels, each having a pixel value. The controller is connected to the sensor for adjusting the pixel values according to a predetermined table, thereby achieving a shade compensation for the sensing elements.
Description
5 parts›BACKGROUND OF THE INVENTION
1. Field of the Invention
The invention relates to a mouse device and, more particularly, to an optical mouse with shade compensation and its shade compensation method
2. Description of Related Art
A typical optical mouse has an image sensor consisting of plural image sensing elements. The sensor can sense two sequential images for motion detection. The image sensor is integrated into an integrated circuit (IC) to accordingly save cost. A transparent adhesive is coated on the IC, in order to protect the IC and the image sensor thereon and also allow the light passing through the transparent adhesive such that the image sensor can operate normally.
However, in the test step of an IC manufacturing, due to that every sensor may have different sensitivity, uneven adhesive or grain contamination, poor image sensitivity may be encountered, which further causes a decision mistake on motion detection of the optical mouse. Accordingly, the ICs having defective sensors are discarded in the IC test process, resulting in a poor IC yield.
Therefore, the prior manufacturing does not process partial image losses caused by minor defective sensors so as to have poor yield and performance. Therefore, it is desirable to provide an improved mouse to mitigate and/or obviate the aforementioned problems.
›SUMMARY OF THE INVENTION
The object of the invention is to provide an optical mouse with shade compensation and its shade compensation method, which can increase IC yield in the optical mouse and avoid the decision mistake on motion detection of the optical mouse.
According to a feature of the invention, an optical mouse with shade compensation is provided. The optical mouse includes a light source, a sensor and a controller. The light source illuminates a sampling plane of a mouse. The sensor consists of a 2-dimensional array of sensing elements to capture an image from the sampling plane and temporarily store the image into a 2-dimensional array of pixels, each having a pixel value. The controller is connected to the sensor for adjusting the pixel values according to a predetermined table, thereby achieving a shade compensation for the sensors.
According to another feature of the invention, an optical mouse with shade compensation is provided. The optical mouse includes a light source, a sensor and a controller. The light source illuminates a sampling plane of a mouse. The sensor consists of a 2-dimensional array of sensing elements to capture an image from the sampling plane and temporarily store the image into a 2-dimensional array of pixels, each having a pixel value. The controller is connected to the sensor for adjusting the pixel values according to the pixels adjacent thereto, thereby achieving a shade compensation for the sensors.
According to a further feature of the invention, there is provided a shade compensation method for an optical mouse which has a sensor consisting of a 2-dimensional array of sensing elements to capture an image from a sampling plane and temporarily store the image into a 2-dimensional array of pixels, each having a value. The method includes the steps of: (A) using the sensor to capture at least one image from a predetermined sampling plane and accordingly obtain a 2-dimensional array of pixel values representing the image, and finding compensation factors proportional to sensitivities of the sensors; and (B) using the sensor to capture a current image from a sampling plane and accordingly obtain a current 2-dimensional array of pixels representing the current image, and multiplying the current array of pixel values by respective compensation factors to thus obtain a corrected 2-dimensional array of pixel values.
According to a further another feature of the invention, there is provided a shade compensation method for an optical mouse which has a sensor consisting of a 2-dimensional array of sensing elements to capture an image from a sampling plane and temporarily store the image into a 2-dimensional array of pixels, each having a pixel value. The method includes the steps of: (A) setting a compensation factor higher than an initial value of a typical compensation factor; (B) using the sensor to read the pixel values and multiply the compensation factor by a respective pixel value of the array to thus obtain a corrected pixel value; (C) replacing the respective pixel value with the corrected pixel value if the corrected pixel value is lower than a predetermined threshold, or otherwise replacing it with the threshold and further replacing the compensation factor with the threshold divided by the respective pixel value.
Other objects, advantages, and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
›BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of an optical mouse with shade compensation according to the invention;
FIG. 2 is a schematic illustration of pixels after sensing elements sense a white compensation sheet according to the invention;
FIG. 3 is a schematic illustration of pixels after sensing elements sense a black compensation sheet according to the invention;
FIG. 4 is a schematic illustration of sensitivity indications of sensing elements according to the invention;
FIG. 5 is a schematic illustration of compensation factors of sensing elements according to the invention;
FIG. 6 is a schematic illustration of pixels representing an image captured by sensing elements according to the invention;
FIG. 7 is a schematic illustration of the image of FIG. 6 after compensation; and
FIG. 8 is a flowchart of shade compensation for the optical mouse of FIG. 1 according to the invention.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 1 of 2
FIG. 1 is a block diagram of an optical mouse with shade compensation according to the invention. In FIG. 1 , the optical mouse includes a light source 110 , a sensor 120 and a controller 130 . The sensor 120 and the controller 130 can be integrated into an IC 100 . As shown in FIG. 1 , the light source 110 preferably is a light-emitted diode (LED). The LED 110 illuminates a sampling plane (not shown) of the optical mouse, and the LED 110 has a positive electrode connected to a high potential and a negative electrode connected to a pin (not shown) of the IC 100 .
The sensor 120 consists of a 2-dimensional array of sensing elements 121 to capture an image from the sampling plane and temporarily store the image into a 2-dimensional array of pixel values. The controller 130 is connected to the sensor 120 for adjusting the pixel values according to a predetermined table 140 , thereby achieving shade compensation for the sensors 121 .
The predetermined table 140 stores compensation factors Fn of the sensing elements 121 , where n is an integer to indicate a respective pixel index. The compensation factors can be computed offline. First, the sensing elements 121 sense a white compensation sheet to thus obtain the pixel values Wn shown in FIG. 2 , where n is an integer to indicate a respective pixel index. In this embodiment, a 6-bit analog-to-digital converter (ADC) is used, which results in a pixel value of around 50 with respect to the white compensation sheet. Two pixel values as circled in FIG. 2 are much lower than those around the two pixel values. In this case, the two pixel values are regarded as defective. Next, the sensing elements 121 sense a black compensation sheet to thus obtain the pixel values Bn shown in FIG. 3 , where n is an integer to indicate a respective pixel index, and in this case, a pixel value with respect to the black compensation sheet is about 2.
Upon respective Wn and Bn, as shown in FIG. 4 , sensitivity indications (Wn-Bn) of the sensing elements 121 can be obtained. Since a pixel value with respect to the black compensation sheet is normally around 0, the sensitivity indications of the sensing elements 121 can be Wn or (Wn-B), where B is a constant. Next, the sensitivity indications are normalized to enhance pixel values captured by the corresponding defective sensing elements to a normal level. To achieve this, a value of M that can be the maximum (Wn-Bn) (in this case, 54 ) or any appropriate value is selected. Thus, for every sensing element 121 , a respective compensation factor is represented by Fn=M/(a respective sensitivity indication)=M/(Wn-Bn). For the respective sensitivity indication as Wn or (Wn-B), the respective compensation factor Fn=M/Wn or M/(Wn-B). FIG. 5 is a schematic illustration of compensation factors Fn of the sensing elements 121 . As shown in FIG. 5 , two compensation factors Fn that are circled have values much higher than the surroundings for compensating image sensitivities of the defective sensing elements 121 .
Subsequently, the pixel values are adjusted by multiplying the pixel values captured by the sensing elements via respective compensation factors. FIG. 6 is a schematic illustration of pixel values IMG1n representing an image to be processed, where n is an integer to indicate a respective pixel index. Pixel values that are circled are much lower than the surroundings because sensors 121 corresponding to the circled pixel values are defective. In this case, the invented compensation factors Fn are applied for compensation, as shown in FIG. 7 . Accordingly, pixel values IMG2n(=IMG1n*Fn) after the last process are obtained. It is obvious that the image impairment originally shown in the right upper circle of FIG. 6 is compensated completely.
The compensation factors Fn can be dynamically adjusted, as shown in the flowchart of FIG. 8 . In step S 810 , initial values of the compensation factors are set. The initial values are higher than a predetermined typical value for downward adjustment to an appropriate value. Step S 820 sets a threshold as a highest limit to all pixel values captured. Step S 830 applies sensing elements to capture an image and read pixel values IMG1n thereof. The pixel values IMG1n are multiplied by respective compensation factors Fn in order to compute adjusted or corrected pixel values IMG2n(=IMG1n*Fn).
Step S 840 determines if the corrected pixel values IMG2n are greater than or equal to the threshold Thd; if not, step 850 are executed to replace corresponding pixel values with the corrected pixels IMG2n; and if yes, step 860 is executed to replace the corresponding pixel values with the threshold Thd. In step S 870 , the compensation factor Fn is corrected to be the threshold Thd divided by the pixel values IMG1n captured by the sensing elements.
Referring again to FIGS. 1 , 2 and 3 , another embodiment of an optical mouse with shade compensation according to the invention is given by using the controller 140 to adjust the pixel values based on adjacent pixel values, thereby achieving shade compensation for the sensors.
First, sensing elements 121 sense a white compensation sheet, and pixel value Wn sensed by each sensing element is shown in FIG. 2 , where n is a pixel index. The two pixel values circled in FIG. 2 are much lower than the surroundings. In this case, the pixel values can be regarded as defective. Next, the sensing elements 121 sense a black compensation sheet, and pixel value Bn sensed by each sensor is shown in FIG. 3 , where n is an integer to indicate a respective pixel index. In this case, a pixel value with respect to the black compensation sheet is about 2.
Upon respective Wn and Bn, as shown in FIG. 4 , sensitivity indications (Wn-Bn) of the sensing elements 121 can be obtained. Since a pixel value with respect to the black compensation sheet is normally around 0, the sensitivity indications of the sensing elements 121 can be Wn or (Wn-B), where B is a constant.
Next, the sensing element 121 with sensitivity indications lower than a a specific value are recorded as defective. Accordingly, pixel values corresponding to the sensitivity indications are defective and compensated in accordance with the respective surrounding pixel values. For example, an average of pixel values captured by sensing elements 121 adjacent to the defective sensing element is regarded as the pixel value of the defective sensing element.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 2 of 2
In view of the foregoing, it is known that the invention uses an offline-generated or dynamic-adjusted compensation table to compensate the pixel values captured by the defective sensing elements 121 , thereby avoiding discarding the entire IC due to the minor defective sensing elements 121 . Thus, the IC yield is increased and also the mistake decision at motion detection of an optical mouse is prevented. Furthermore, the invention uses a respective sensitivity indication of each sensing element 121 to compensate the pixel values captured by the defective sensing elements 121 , thereby increasing the IC yield and avoiding the mistake decision at motion detection of an optical mouse.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Claims as granted
23 claimsLog in to read the claims of this application.
Log in to unlockClassifications
5 codes- G06F3/033
- G06F3/03
- G09G5/08
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock