摘要 |
Provided is a method for spot imaging using a CCD linear-array photosensitive device, comprising the following steps: sensing an optical signal to an electrical signal; obtaining a P point of the location of the largest grayscale value in a frame, and the grayscale value MAX of the P point; comparing MAX with a preset overexposure threshold SAT; is MAX is less than SAT, then obtaining the center of the position of the spot; is MAX is greater than or equal to SAT, then comparing with a preset threshold SECTH the values of a number q of pixel positions to the left and right of P, taking P as the center; if the pixels greater than SECTH are smaller than a preset value W, then obtaining the center of the position of the spot; if the number of pixels greater than SECTH is greater than or equal to the preset value W, then searching for the rightmost position greater than SECTH and the leftmost position greater than SECTH; substituting the set threshold SECTH into the fitted straight line, obtaining the starting point m and an end point n of a saturation signal, and the distance Le between said two points to arrive at the estimated position of the spot imaging. |