摘要 |
A motion sensing process senses a mouse moving relative to a surface by taking a reference image and a sample image of the surface. The process shifts the reference image to neighboring pixel positions arranged in certain patterns and compares the sample image with the reference image at its original pixel position at the shifted pixel positions. A motion vector describing a displacement of the object with respect to the surface is generated from such comparisons. In one embodiment, the pattern includes the original pixel position and neighboring pixel position arranged five rows and five columns with the total number of the pixel positions less than twenty five. In another embodiment, the process selects one of four elongated patterns based on the orientation of a predicted motion vector. In yet another specific embodiment, the process selects one of eight directional patterns based on the direction of the predicted motion vector.
|