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

simple algorithm to find pixels of interest More...

#include <pixel_finder_simple.h>

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

Public Member Functions

 PixelFinderSimple ()
 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

Detector::pixel_t _threshold
 the threshold above which the pixels have to be 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

simple algorithm to find pixels of interest

the algorithm is taken from Per Johnsons code and is just put into a functor.

User definable Parameters:
PixelDetectors/%name%/SimpleFinder/{Threshold}
The threshold above which the pixels have to be. Default is 0.
Author
Per Johnson
Lutz Foucar

Definition at line 29 of file pixel_finder_simple.h.

Constructor & Destructor Documentation

PixelFinderSimple::PixelFinderSimple ( )

constructor

Definition at line 18 of file pixel_finder_simple.cpp.

Member Function Documentation

void PixelFinderSimple::loadSettings ( CASSSettings s)
virtual

load the settings of this

Parameters
sthe CASSSettings object to read the information from

Implements cass::pixeldetector::PixelFinderBase.

Definition at line 54 of file pixel_finder_simple.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), and QSettings::value().

PixelFinderSimple::pixels_t & PixelFinderSimple::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.
Go through the whole frame and check wether a pixel is above the threshold. If so then check whether the sourrounding pixels all have a smaller value. If this is the case and the pixel is not at the edge of the frame add the pixel to the list of pixels

Returns
reference to the 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 23 of file pixel_finder_simple.cpp.

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

Member Data Documentation

Detector::pixel_t cass::pixeldetector::PixelFinderSimple::_threshold
private

the threshold above which the pixels have to be

Definition at line 58 of file pixel_finder_simple.h.


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