Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Centroid correction can be done to smooth the centroid position of single photon peaks. In the following example code, the V1 peak finder which can be found here is used to obtain a large number of peaks. The row and column "center of gravity" centroids for each peak is are saved in the array centroids. The object, CentroidSmootherCalib, saves the data needed to smooth the centroids. Then the object, CentroidSmoother, will obtain this data and by passing getSmoothedCentroids the array of the row and column of centroids, an array of the row and column of the smoothed centroids is returned. 

...