In image-processing, there are some usual processing steps
such as smoothing, binary and character recognition etc. which
cost much time and decrease the speed of measurement
system. Therefore, the principle of subtraction is proposed in
the pre-image processing and the centroid of light source is
estimated by ellipse fitting method. The result is satisfiying.