CFEL - ASG Software Suite
2.5.0
CASS
|
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_t > | pixels_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 std::vector<Detector::pixel_t> cass::pixeldetector::commonmode::pixels_t |
Definition at line 24 of file commonmode_calculators.h.
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.
nbrPixels | the number of pixel that cover the range to check for the common mode level. | |
pixel | iterator to the point in the frame that should be checked for the common mode level. | |
offset | const_iterator that starts at the position in the offset map that we are investigating | |
noise | const_iterator that starts at the position in the noise map that we are investigating | |
mask | const_iterator that starts at the position in the mask that we are interested in. | |
multiplier | the mulitplier to multiply to the noise value | |
initialLevel | the inital level of the common mode | |
[out] | pixels | The list of pixels found in this function |
Definition at line 53 of file commonmode_calculators.cpp.
Referenced by cass::pixeldetector::commonmode::MeanCalculator::operator()(), and cass::pixeldetector::commonmode::MedianCalculator::operator()().