CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
cass::pixeldetector::AboveNoiseFinder Class Reference

will find pixels by comparing them to a "noise" map More...

#include <above_noise_finder.h>

+ Inheritance diagram for cass::pixeldetector::AboveNoiseFinder:
+ Collaboration diagram for cass::pixeldetector::AboveNoiseFinder:

Public Member Functions

 AboveNoiseFinder ()
 constructor More...
 
pixels_toperator() (const Frame &frame, pixels_t &pixels)
 find the pixels More...
 
void loadSettings (CASSSettings &s)
 load the settings of this More...
 
- Public Member Functions inherited from cass::pixeldetector::PixelFinderBase
virtual ~PixelFinderBase ()
 virtual destructor More...
 

Private Attributes

CommonData::shared_pointer _commondata
 the global data container for the detector More...
 
float _multiplier
 how many times the value of the pixel needs to be higher than the standart deviation More...
 

Additional Inherited Members

- Public Types inherited from cass::pixeldetector::PixelFinderBase
typedef std::tr1::shared_ptr< PixelFinderBaseshared_pointer
 typedef the shared pointer of this More...
 
typedef std::vector< Pixelpixels_t
 the list of pixels More...
 
- Static Public Member Functions inherited from cass::pixeldetector::PixelFinderBase
static shared_pointer instance (const std::string &type)
 create an instance of the requested functor More...
 

Detailed Description

will find pixels by comparing them to a "noise" map

This HLL like finding of pixels will compare the pixel values to a "noise" Map (see cass::pixeldetector::CommonData::noiseMap).

Note
the multiplication should be done here since if we do it on the global noise map it will be the same for all detectors
Todo:
is this right?
User definable Parameters:
PixelDetectors/%name%/AboveNoiseFinder/{Multiplier}
Value multiplied to the noise value before comparing whether the pixel is above the noise. Default is 4.
Author
Lutz Foucar

Definition at line 33 of file above_noise_finder.h.

Constructor & Destructor Documentation

AboveNoiseFinder::AboveNoiseFinder ( )

constructor

Definition at line 18 of file above_noise_finder.cpp.

Member Function Documentation

void AboveNoiseFinder::loadSettings ( CASSSettings s)
virtual
AboveNoiseFinder::pixels_t & AboveNoiseFinder::operator() ( const Frame frame,
pixels_t pixels 
)
virtual

find the pixels

take the input frame and search it for pixels which are put into the list of pixels.

Will go through the whole frame and compare each pixel whether its value is bigger than _multiplier * noise taken from the noiseMap. If this is the case it will be added to the list of pixels.

Returns
reference to the coalesced pixel list
Parameters
framethe frame containing the pixels of interest
pixelsthe list of pixels that should be found

Implements cass::pixeldetector::PixelFinderBase.

Definition at line 21 of file above_noise_finder.cpp.

References cass::pixeldetector::Frame::columns, cass::pixeldetector::Frame::data, noise, cass::ACQIRIS::x, and cass::ACQIRIS::y.

Member Data Documentation

CommonData::shared_pointer cass::pixeldetector::AboveNoiseFinder::_commondata
private

the global data container for the detector

Definition at line 62 of file above_noise_finder.h.

float cass::pixeldetector::AboveNoiseFinder::_multiplier
private

how many times the value of the pixel needs to be higher than the standart deviation

Definition at line 65 of file above_noise_finder.h.


The documentation for this class was generated from the following files: