Introduction - If you have any usage issues, please Google them yourself
This function is implemented in the laser spot detection. First spot pretreatment, and then use the barycenter method to calculate the coordinates of the center of the spot, the final use of MATLAB graphics depict the changes in the spot center position.