20 using namespace commonmode;
60 else if (type ==
"mean")
62 else if (type ==
"simpleMean")
64 else if (type ==
"median")
67 throw invalid_argument(
"CalculatorBase::instance: Common Mode Calculator type '" + type +
77 _nbrPixels = s.
value(
"Width",128).toUInt();
78 _multiplier = s.
value(
"Multiplier",4).toUInt();
std::tr1::shared_ptr< CalculatorBase > shared_pointer
typedef the shared pointer of this
contains base class for all common mode calculators.
Calculate the common mode by taking mean of pixel values.
float pixel_t
define a pixel of the pixel detector
void load(CASSSettings &s)
load all common settings
void loadSettings(CASSSettings &s)
need to load the settings of the base class loaded
static std::string fromSettings(const CASSSettings &s)
retrieve it from the casssettings
value(const QString &key, const QVariant &defaultValue=QVariant()
static shared_pointer instance(const std::string &type)
create an instance of the requested functor
contains the common data for one advanced pixeldetector
file contains specialized class that do the settings for cass
contains all available common mode calculators.
static shared_pointer instance(const instancesmap_t::key_type &detector)
static function creating instance of this.
Just returns a constant 0.
Calculate the common mode by taking mean of pixel values.
base class for all common mode calculators
beginGroup(const QString &prefix)