#include <denoiseCommand.h>
Public Member Functions | |
DenoiseCommand (SelectionPtr selection_ptr, CloudPtr cloud_ptr, float mean, float threshold) | |
Constructor. | |
~DenoiseCommand () | |
Destructor. | |
Protected Member Functions | |
void | execute () |
Runs the denois algorithm to remove all the outliers. | |
void | undo () |
Adds the removed noisy points back to the cloud. | |
Private Member Functions | |
DenoiseCommand () | |
Default Constructor. | |
DenoiseCommand (const DenoiseCommand &) | |
Copy constructor - commands are non-copyable. | |
DenoiseCommand & | operator= (const DenoiseCommand &) |
Equal operator - commands are non-copyable. | |
Private Attributes | |
CloudPtr | cloud_ptr_ |
A pointer pointing to the cloud of the widget. | |
float | mean_ |
The number of points to use for mean distance estimation. | |
Selection | removed_indices_ |
A selection object which backs up the indices of the noisy points removed. | |
CopyBuffer | removed_points_ |
A copy buffer which backs up the noisy point removed after denoising. | |
SelectionPtr | selection_ptr_ |
A shared pointer pointing to the selection object of the widget. | |
float | threshold_ |
The standard deviation multiplier threshold. |
Definition at line 51 of file denoiseCommand.h.
DenoiseCommand::DenoiseCommand | ( | SelectionPtr | selection_ptr, |
CloudPtr | cloud_ptr, | ||
float | mean, | ||
float | threshold | ||
) | [inline] |
Constructor.
selection_ptr | a shared pointer pointing to the selection object. |
cloud_ptr | a shared pointer pointing to the cloud object. |
mean | the number of points to use for mean distance estimation. |
threshold | the standard deviation multiplier threshold |
Definition at line 59 of file denoiseCommand.h.
DenoiseCommand::~DenoiseCommand | ( | ) | [inline] |
Destructor.
Definition at line 67 of file denoiseCommand.h.
DenoiseCommand::DenoiseCommand | ( | ) | [inline, private] |
Default Constructor.
Definition at line 82 of file denoiseCommand.h.
DenoiseCommand::DenoiseCommand | ( | const DenoiseCommand & | ) | [inline, private] |
Copy constructor - commands are non-copyable.
Definition at line 87 of file denoiseCommand.h.
void DenoiseCommand::execute | ( | ) | [protected, virtual] |
Runs the denois algorithm to remove all the outliers.
Implements Command.
Definition at line 48 of file denoiseCommand.cpp.
DenoiseCommand& DenoiseCommand::operator= | ( | const DenoiseCommand & | ) | [inline, private] |
Equal operator - commands are non-copyable.
Definition at line 95 of file denoiseCommand.h.
void DenoiseCommand::undo | ( | ) | [protected, virtual] |
Adds the removed noisy points back to the cloud.
Implements Command.
Definition at line 75 of file denoiseCommand.cpp.
CloudPtr DenoiseCommand::cloud_ptr_ [private] |
A pointer pointing to the cloud of the widget.
Definition at line 104 of file denoiseCommand.h.
float DenoiseCommand::mean_ [private] |
The number of points to use for mean distance estimation.
Definition at line 107 of file denoiseCommand.h.
Selection DenoiseCommand::removed_indices_ [private] |
A selection object which backs up the indices of the noisy points removed.
Definition at line 116 of file denoiseCommand.h.
CopyBuffer DenoiseCommand::removed_points_ [private] |
A copy buffer which backs up the noisy point removed after denoising.
Definition at line 113 of file denoiseCommand.h.
SelectionPtr DenoiseCommand::selection_ptr_ [private] |
A shared pointer pointing to the selection object of the widget.
Definition at line 101 of file denoiseCommand.h.
float DenoiseCommand::threshold_ [private] |
The standard deviation multiplier threshold.
Definition at line 110 of file denoiseCommand.h.