Esempio n. 1
0
TemporalMedianFilter::TemporalMedianFilter(uint order, float deadband): Filter("TemporalMedianFilter"), _order(order), _deadband(deadband) 
{
  _addParameters({
    FilterParameterPtr(new UnsignedFilterParameter("order", "Order", "Order of the filter", _order, "", 1, 100)),
    FilterParameterPtr(new FloatFilterParameter("deadband", "Dead band", "Dead band", _deadband, "", 0, 1)),
  });
}
Esempio n. 2
0
MedianFilter::MedianFilter(float stability, float deadband, float deadbandStep, uint halfKernelSize): Filter("MedianFilter"), 
  _stability(stability), _deadband(deadband), _deadbandStep(deadbandStep), _halfKernelSize(halfKernelSize)
{
  _addParameters({
    FilterParameterPtr(new FloatFilterParameter("stability", "Stability", "Stability factor", stability, "", 0, 1)),
    FilterParameterPtr(new FloatFilterParameter("deadband", "Dead band", "Dead band", deadband, "", 0, 1)),
    FilterParameterPtr(new FloatFilterParameter("deadbandStep", "Dead band step", "Dead band step", deadbandStep, "", 0, 1)),
    FilterParameterPtr(new UnsignedFilterParameter("halfKernelSize", "Half kernel size", "Half kernel size", halfKernelSize, "", 1, 100))
  });
}
Esempio n. 3
0
SmoothFilter::SmoothFilter(float sigma): Filter("SmoothFilter"), _discreteGaussian(sigma)
{
  _addParameters({
    FilterParameterPtr(new FloatFilterParameter("sigma", "Sigma", "Standard deviation", sigma, "", 0, 100))
  });
}
Esempio n. 4
0
FlypixFilter::FlypixFilter(float thr): Filter("FlypixFilter"), _thr(thr)
{
  _addParameters({
    FilterParameterPtr(new FloatFilterParameter("threshold", "threshold", "gradient threshold", thr, "", 0, 10000))
  });
}