You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

Peak finding algorithms locate regions of charge in an area detector. In LCLS data all area detectors are represented by n-d arrays (typically a 2-dimensional array for image, or a 3-dimensional array for multi-panel detectors) so these python-callable algorithms will work on n-d arrays.

Additional documentation is here and examples are here.

Algorithms

All peak finders and a few other image processing algorithms are available in a single class suit supporting common infrastructure. All algorithms work with good pixels defined by the mask and inside specified rectangular windows. Both these mechanisms (windows and mask) can be used to describe a region of interest. By default, if mask or/and windows are not specified, all pixels are processed. A few versions of peak finder use different approach to the peak definition (finding group of pixels forming a peak) at first stage and the same algorithms at final stage for evaluation of peak parameters, as explained below. 

Peak Finder "V1"

This algorithm uses a "seed" threshold to start finding peaks, and then a lower "neighbor" threshold to add additional pixels to the peak inside the square region defined by the radial parameter.  

Peak Finder "V2"

This algorithm uses a single low threshold and joins contiguous pixels with intensity above threshold using a "flood-fill" algorithm. 

Peak Finder "V3"

This algorithm finds the largest intensity pixel in a square region set by a "rank"-radial parameter (local maximum for rank).  Peak candidate includes all pixels with intensity above zero in the square region spanning from −rank to +rank in both the row and column directions relative maximal intensity pixel.

At final stage all pixels associated with peak are used to evaluate peak maximum row and column, total intensity, center of gravity coordinates, limits of the peak region.  A surrounding user-specified ring-region of pixels around the peak is used to evaluate average background level, its rms spread, and signal-over-noise ratio. The user will typically reduce the number of peaks returned from these algorithms by applying cuts to signal levels or signal-over-noise ratio.

  • No labels