CFEL - ASG Software Suite  2.5.0
CASS
Classes | Typedefs | Functions
cass::pixeldetector::commonmode Namespace Reference

Classes

class  CalculatorBase
 base class for all common mode calculators More...
 
class  MeanCalculator
 Calculate the common mode by taking mean of pixel values. More...
 
class  MedianCalculator
 Calculate the common mode by taking the median of pixel values. More...
 
class  NoCalc
 Just returns a constant 0. More...
 
class  SimpleMeanCalculator
 Calculate the common mode by taking mean of pixel values. More...
 

Typedefs

typedef std::vector< Detector::pixel_tpixels_t
 

Functions

void createPixelList (size_t nbrPixels, Detector::frame_t::const_iterator pixel, Detector::frame_t::const_iterator offset, Detector::frame_t::const_iterator noise, CommonData::mask_t::const_iterator mask, float multiplier, Detector::pixel_t initialLevel, pixels_t &pixels)
 build up the list of pixels that contribute to the common mode calculation More...
 

Typedef Documentation

Definition at line 24 of file commonmode_calculators.h.

Function Documentation

void cass::pixeldetector::commonmode::createPixelList ( size_t  nbrPixels,
Detector::frame_t::const_iterator  pixel,
Detector::frame_t::const_iterator  offset,
Detector::frame_t::const_iterator  noise,
CommonData::mask_t::const_iterator  mask,
float  multiplier,
Detector::pixel_t  initialLevel,
pixels_t pixels 
)

build up the list of pixels that contribute to the common mode calculation

go as much pixels as told via nbrPixels. Offset correct each pixel then check whether pixel minus the initial common mode level is less than the noise if so add it to the ordered list of pixels.

Parameters
nbrPixelsthe number of pixel that cover the range to check for the common mode level.
pixeliterator to the point in the frame that should be checked for the common mode level.
offsetconst_iterator that starts at the position in the offset map that we are investigating
noiseconst_iterator that starts at the position in the noise map that we are investigating
maskconst_iterator that starts at the position in the mask that we are interested in.
multiplierthe mulitplier to multiply to the noise value
initialLevelthe inital level of the common mode
[out]pixelsThe list of pixels found in this function
Author
Lutz Foucar

Definition at line 53 of file commonmode_calculators.cpp.

References noise, and offset.

Referenced by cass::pixeldetector::commonmode::MeanCalculator::operator()(), and cass::pixeldetector::commonmode::MedianCalculator::operator()().