10 #include "../MLSSmoothingUpsampling.h"
13 #include "PclUtils/PCLModules.h"
25 connect(this->upsampling_method, SIGNAL(currentIndexChanged(QString)),
this,
27 connect(this->search_radius, SIGNAL(valueChanged(
double)),
this,
34 this->upsampling_method->clear();
35 this->upsampling_method->addItem(tr(
"None"), QVariant(MLSParameters::NONE));
36 this->upsampling_method->addItem(
37 tr(
"Sample Local Plane"),
38 QVariant(MLSParameters::SAMPLE_LOCAL_PLANE));
39 this->upsampling_method->addItem(
40 tr(
"Random Uniform Density"),
41 QVariant(MLSParameters::RANDOM_UNIFORM_DENSITY));
42 this->upsampling_method->addItem(
43 tr(
"Voxel Grid Dilation"),
44 QVariant(MLSParameters::VOXEL_GRID_DILATION));
50 if (
name == tr(
"Sample Local Plane")) {
51 this->sample_local_plane_method->setEnabled(
true);
52 }
else if (
name == tr(
"Random Uniform Density")) {
53 this->random_uniform_density_method->setEnabled(
true);
54 }
else if (
name == tr(
"Voxel Grid Dilation")) {
55 this->voxel_grid_dilation_method->setEnabled(
true);
62 this->sample_local_plane_method->setEnabled(
false);
63 this->random_uniform_density_method->setEnabled(
false);
64 this->voxel_grid_dilation_method->setEnabled(
false);
72 this->squared_gaussian_parameter->setValue(radius * radius);
void toggleMethods(bool status)
void updateSquaredGaussian(double radius)
void deactivateAllMethods()
MLSDialog(QWidget *parent=nullptr)
void activateMenu(QString name)