31 #ifndef MARGINALSTATISTICOP_H_
32 #define MARGINALSTATISTICOP_H_
36 #include "drain/util/Histogram.h"
65 MarginalStatisticOp(
const std::string & mode =
"horz",
const std::string & stat=
"asmdvNX",
float medianPos=0.50) :
66 ImageOp(
"MarginStat",
"Computes statistics on <horz> or <vert> lines: iAverage,sum,median,stdDev,variance,miN,maX") {
67 parameters.link(
"mode", this->mode = mode);
68 parameters.link(
"stat", this->stat = stat);
69 parameters.link(
"medianPos", this->medianPos = medianPos);
Image with static geometry.
Definition: ImageFrame.h:67
Base class for image processing functions.
Definition: ImageOp.h:49
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Computes horizontal or vertical intensity statistics: iAverage, sum, ...
Definition: MarginalStatisticOp.h:57
void process(const ImageFrame &src, Image &dst) const
Unweighted computation.
Definition: MarginalStatisticOp.h:74
MarginalStatisticOp(const std::string &mode="horz", const std::string &stat="asmdvNX", float medianPos=0.50)
Default constructor.
Definition: MarginalStatisticOp.h:65
Definition: DataSelector.cpp:1277