26 Detector::frame_t::const_iterator
pixel(frame.
data.begin());
29 const uint16_t
x(idx % frame.
columns);
30 const uint16_t
y(idx / frame.
columns);
31 if (*
pixel > _threshold &&
57 _threshold = s.
value(
"Threshold",0).toUInt();
70 Detector::frame_t::const_iterator
pixel(frame.
data.begin());
73 const uint16_t
x(idx % frame.
columns);
74 const uint16_t
y(idx / frame.
columns);
76 if (*
pixel > _threshold &&
78 y < frame.
rows-_squaresize &&
83 bool pixelIsLocalMaximum(
true);
84 for (
int squareRow=-_squaresize; squareRow <= _squaresize; ++squareRow)
86 for (
int squareCol=-_squaresize; squareCol <= _squaresize; ++squareCol)
88 if (!(squareRow == 0 && squareCol == 0))
89 pixelIsLocalMaximum = pixelIsLocalMaximum && (frame.
data[idx + squareRow*frame.
columns + squareCol] < *
pixel);
92 if (pixelIsLocalMaximum)
105 _threshold = s.
value(
"Threshold",0).toUInt();
106 _squaresize = s.
value(
"SquareSize",1).toUInt();
117 Detector::frame_t::const_iterator
pixel(frame.
data.begin());
118 Detector::frame_t::const_iterator end(frame.
data.end());
123 if(_range.first < *
pixel && *
pixel < _range.second)
125 const uint16_t
x(idx % frame.
columns);
126 const uint16_t
y(idx / frame.
columns);
136 _range = make_pair(s.
value(
"LowerThreshold",0).toFloat(),
137 s.
value(
"UpperThreshold",1e6).toFloat());
void loadSettings(CASSSettings &s)
load the settings of this
void loadSettings(CASSSettings &s)
load the settings of this
pixels_t & operator()(const Frame &frame, pixels_t &pixels)
find the pixels
std::vector< Pixel > pixels_t
the list of pixels
uint16_t rows
how many rows
uint16_t columns
how many columns
PixelFinderSimpleMoreOptions()
constructor
value(const QString &key, const QVariant &defaultValue=QVariant()
pixels_t & operator()(const Frame &frame, pixels_t &pixels)
find the pixels
A Frame of an advance Pixel Detector.
Detector::frame_t data
the frame data
file contains specialized class that do the settings for cass
PixelFinderSimple()
constructor
contains pixel finder that works like Per Johnsons
int16_t pixel
define a pixel
pixels_t & operator()(const Frame &frame, pixels_t &pixels)
find the pixels
beginGroup(const QString &prefix)
void loadSettings(CASSSettings &s)
load the settings of this