11 #include <tr1/functional>
164 const imagepos_t nColumns,
165 pixelval_t &mean, pixelval_t &stdv,
int &count);
168 std::pair<imagepos_t,imagepos_t>
_box;
457 const index_t linIdx,
const shape_t &box, stat_t &stat);
471 const index_t linIdx, shape_t box, stat_t &stat);
541 std::tr1::function<double(const CASSEvent::id_t&)>
_getLambda;
559 std::tr1::function<pixelval_t(const CASSEvent::id_t&)>
_thresh;
result_t::storage_t::value_type pixelval_t
define the type of the pixel in image
shared_pointer _noisePP
processor containing the noise image for thresholding
shared_pointer _wavelengthPP
pp containing wavelength in case its not fixed
storage_t::const_iterator const_iterator
a const iterator on the storage
virtual void loadSettings(size_t)
load the settings of this pp
double _detdist
the detector distance in case its fixed
pixelval_t _threshold
pixel threshold to be exceeded
float _minSnr
the min signal to noise ratio that needs to be exceeded
std::tr1::function< double(const CASSEvent::id_t &)> _getLambda
function that gets the wavelength
double lambdaFromProcessor(const CASSEvent::id_t &id)
retrieve the wavelength from the processor
size_t _idxCol
the number of the column where the global index of the pixel is
double distanceFromProcessor(const CASSEvent::id_t &id)
retrieve the detector distance from the processor
pp209(const name_t &name)
constructor
Event to store all LCLS Data.
float _minNeighbourSNR
the min signal to noise ratio that needs to be exceeded
find bragg peaks and store them in a list
result_t::value_t pixelval_t
define the values of the pixels
shared_pointer _table
pp containing the results
std::vector< value_t > storage_t
the storage of this container
std::tr1::function< double(const CASSEvent::id_t &)> _getDistance
function that gets the detectordistance
neighbourList_t _neighbourOffsets
the list of offsets to next neighbours
double _wavelength
the wavelength in case its fixed
shape_t _box
the size of the box within which the peak should lie
pp204(const name_t &name)
constructor
float _threshold
pixel threshold to be exceeded
float _multiplier
multiplier for the noise threshold
virtual void process(const CASSEvent &, result_t &)
process event
result_t::storage_t table_t
definition of the table
ColumnNames
enum describing the contents of the resulting table
virtual void process(const CASSEvent &, result_t &)
process event
const name_t name() const
retrieve the name of this processor
file contains declaration of the CASSEvent
float value_t
the values of this container
result_t::storage_t table_t
definition of the table
stat_t::value_type _minSnr
minimum Signal to Noise Ratio thats is needed for a pixel to be an outlier
virtual void loadSettings(size_t)
load the settings for this processor
shared_pointer _hist
pp containing 2d histogram
std::pair< int, int > _box
the size of the box within which the peak should lie
statistics calculator for a cummulative statistic, removes outliers
ColumnNames
enum describing the contents of the resulting table
pixelval_t thresholdFromProcessor(const CASSEvent::id_t &id)
retrieve the threshold from the processor
std::pair< index_t, index_t > shape_t
define the shape of the image
Type value_type
define the value type
uint64_t id_t
define the id type
std::pair< size_t, size_t > _sectionSize
size of a image section
std::pair< int, int > _boxsize
virtual void loadSettings(size_t)
load the settings of this pp
find connected pixels, coalesce them and store them in a list
int getBoxStatistics(result_t::const_iterator centerPixel, const imagepos_t nColumns, pixelval_t &mean, pixelval_t &stdv, int &count)
check highest pixel and generate the mean and standart deviation
virtual void process(const CASSEvent &, result_t &)
process event
shared_pointer _detdistPP
pp containing detector distance in case its not fixed
ColumnNames
enum describing the contents of the resulting table
stat_t::count_type _minNbrPixels
the minimum nbr of pixels in the bragg peak
int64_t index_t
define the index in the image
std::pair< int, int > _section
size of a image section
shared_pointer _imagePP
processor containing the image to find the bragg peaks in
visualize the peaks that were found in the image itself
virtual void process(const CASSEvent &, result_t &)
process event
double distanceFromConstant(const CASSEvent::id_t &)
retrieve the constant detector distance
std::tr1::function< pixelval_t(const CASSEvent::id_t &)> _thresh
function that gets the detectordistance
pp210(const name_t &name)
constructor
shared_pointer _hist
processor containing the image to find the bragg peaks in
base class for processors.
shape_t _imageShape
size of the incomming image
pixelval_t _minNbrSnr
minimum snr when pixel is an neighbour
result_t::value_t _drawInnerValue
std::pair< imagepos_t, imagepos_t > _section
size of a image section
result_t::value_t _drawVal
draw flags as bitmask
std::vector< double > _src2labradius
the conversion table from raw to lab
virtual void process(const CASSEvent &, result_t &)
process event
neighbourList_t _neighbourOffsets
the list of offsets to next neighbours
result_t::storage_t table_t
definition of the table
shape_t _imageShape
size of the incomming image
virtual void loadSettings(size_t)
load the settings of this pp
neighbourList_t _neighbourOffsets
the list of offsets to next neighbours
double lambdaFromConstant(const CASSEvent::id_t &)
retrieve the constant wavelength
shape_t _section
size of a image section
pp203(const name_t &)
constructor
result_t::storage_t::value_type pixelval_t
define the type of the pixel in image
size_t _maxAdditionalPixels
pixel value of a bad pixel
CummulativeStatisticsNoOutlier< pixelval_t > stat_t
define the type of statistics used
pp206(const name_t &name)
constructor
float _minRatio
minimum ratio of nbr of points used for statistics to nbr of outliers
find pixels of bragg peaks and store them in a list
shared_pointer _hist
pp containing 2d histogram
file contains processors baseclass declaration
std::pair< index_t, index_t > shape_t
define the shape of the image
result_t::storage_t table_t
definition of the table
std::vector< index_t > neighbourList_t
define the list of neighbours
std::pair< index_t, index_t > shape_t
define the shape of the image
shared_pointer _imagePP
processor containing the image to find the bragg peaks in
virtual void process(const CASSEvent &, result_t &)
process event
ColumnNames
enum describing the contents of the resulting table
int64_t index_t
define the index in the image
stat_t::count_type _minNbrPixels
the minimum nbr of pixels in the bragg peak
pp205(const name_t &name)
constructor
std::pair< imagepos_t, imagepos_t > _box
the size of the box within which the peak should lie
contains declarations of statistic calculators
std::vector< index_t > neighbourList_t
define the list of neighbours
shared_pointer _threshPP
processor containing the threshold for each pixel of the image
std::pair< size_t, size_t > _boxSize
the size of the box used for the median filter
pixelval_t _factor
the factor that the pixelwise threshold is multuplied with
shape_t _imageShape
size of the incomming image
result_t::storage_t::value_type pixelval_t
define the type of the pixel in image
std::vector< index_t > neighbourList_t
define the list of neighbours
pp208(const name_t &name)
constructor
int _minBckgndPixels
min amount of pixels for the background calc
int imagepos_t
define the positions in the image
int isNotHighest(result_t::const_iterator pixel, const index_t linIdx, shape_t box, stat_t &stat)
check if pixel is not highest within box
shape_t _box
the size of the box within which the peak should lie
float _threshold
pixel threshold to be exceeded
shape_t _section
size of a image section
pixelval_t thresholdFromConstant(const CASSEvent::id_t &id)
retrieve the threshold constant
get the local background from image.
pixelval_t _threshold
pixel threshold to be exceeded
shared_pointer _imagePP
processor containing the image to find the bragg peaks in
std::string name_t
define the name type
shared_pointer _imagePP
processor containing the image
virtual void loadSettings(size_t)
load the settings of this pp
int16_t pixel
define a pixel
std::tr1::shared_ptr< Processor > shared_pointer
a shared pointer of this
stat_t::value_type _minSnr
minimum Signal to Noise Ratio thats is needed for a pixel to be an outlier
virtual void loadSettings(size_t)
load the settings of this pp
result_t::storage_t table_t
definition of the table
virtual void loadSettings(size_t)
load the settings of this pp
find bragg peaks and store them in list
virtual void process(const CASSEvent &, result_t &)
process event
CummulativeStatisticsNoOutlier< pixelval_t > stat_t
define the type of statistics used
int64_t index_t
define the index in the image
pixelval_t _badPixVal
pixel value of a bad pixel
shared_pointer _threshPP
pp containing threshold in case its not fixed
std::iterator_traits< iterator_t >::difference_type count_type
define number of elements
int _peakRadiusSq
the square size of bragg peak radius
int getBoxStatistics(result_t::const_iterator pixel, const index_t linIdx, const shape_t &box, stat_t &stat)
retrieve the box statistics