2 #include "ui_outlier_removal.h"
6 , _widget(new QWidget())
8 , _ring_view(_buffer.begin(), _buffer.end())
12 connect(
ui->spinBoxFactor, qOverload<double>(&QDoubleSpinBox::valueChanged),
this,
13 [=](
int) { emit parametersChanged(); });
28 QDomElement& parent_element)
const
30 QDomElement widget_el = doc.createElement(
"options");
31 widget_el.setAttribute(
"value",
ui->spinBoxFactor->value());
32 parent_element.appendChild(widget_el);
38 QDomElement widget_el = parent_element.firstChildElement(
"options");
39 if (widget_el.isNull())
43 ui->spinBoxFactor->setValue(widget_el.attribute(
"value",
"100.0").toDouble());
62 double thresh =
ui->spinBoxFactor->value();
64 double jump = std::max(std::abs(d1), std::abs(d2));
65 if (jump / std::abs(d0) > thresh)