CFEL - ASG Software Suite
2.5.0
CASS
|
same as simple, but with adjustable box size More...
#include <pixel_finder_simple.h>
Public Member Functions | |
PixelFinderSimpleMoreOptions () | |
constructor More... | |
pixels_t & | operator() (const Frame &frame, pixels_t &pixels) |
find the pixels More... | |
void | loadSettings (CASSSettings &s) |
load the settings of this More... | |
![]() | |
virtual | ~PixelFinderBase () |
virtual destructor More... | |
Private Attributes | |
Detector::pixel_t | _threshold |
the threshold above which the pixels have to be More... | |
int | _squaresize |
the size of the square to check More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< PixelFinderBase > | shared_pointer |
typedef the shared pointer of this More... | |
typedef std::vector< Pixel > | pixels_t |
the list of pixels More... | |
![]() | |
static shared_pointer | instance (const std::string &type) |
create an instance of the requested functor More... | |
same as simple, but with adjustable box size
the algorithm is an enhanced version of pers code where one can choose the size of the box to be checked.
PixelDetectors/%name%/SimpleFinder/{SquareSize}
The size of the box.
PixelDetectors/%name%/SimpleFinder/{Threshold}
The threshold above which the pixels have to be. Default is 0.
Definition at line 75 of file pixel_finder_simple.h.
PixelFinderSimpleMoreOptions::PixelFinderSimpleMoreOptions | ( | ) |
constructor
Definition at line 62 of file pixel_finder_simple.cpp.
|
virtual |
load the settings of this
s | the CASSSettings object to read the information from |
Implements cass::pixeldetector::PixelFinderBase.
Definition at line 102 of file pixel_finder_simple.cpp.
References QSettings::beginGroup(), QSettings::endGroup(), and QSettings::value().
|
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 in a box 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
frame | the frame containing the pixels of interest |
pixels | the list of pixels that should be found |
Implements cass::pixeldetector::PixelFinderBase.
Definition at line 67 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.
|
private |
the size of the square to check
Definition at line 107 of file pixel_finder_simple.h.
|
private |
the threshold above which the pixels have to be
Definition at line 104 of file pixel_finder_simple.h.