Gaussian noise class.
More...
#include <GaussianNoiseModel.hh>
Inherits Noise.
Inherited by ImageGaussianNoiseModel.
|
| | GaussianNoiseModel () |
| | Constructor.
|
| |
| virtual | ~GaussianNoiseModel () |
| | Destructor.
|
| |
| double | Apply (double _in) |
| | Apply noise to input data value.
|
| |
| double | ApplyImpl (double _in) |
| | Apply noise to input data value.
|
| |
| virtual void | Fini () |
| | Finalize the noise model.
|
| |
| double | GetBias () const |
| | Accessor for bias.
|
| |
| double | GetMean () const |
| | Accessor for mean.
|
| |
| NoiseType | GetNoiseType () const |
| | Accessor for NoiseType.
|
| |
| double | GetStdDev () const |
| | Accessor for stddev.
|
| |
| virtual void | Load (sdf::ElementPtr _sdf) |
| | Load noise parameters from sdf.
|
| |
| virtual void | Print (std::ostream &_out) const |
| | Documentation inherited.
|
| |
| virtual void | SetCamera (rendering::CameraPtr _camera) |
| | Set camera needed to create image noise.
|
| |
| virtual void | SetCustomNoiseCallback (boost::function< double(double)> _cb) |
| | Register a custom noise callback.
|
| |
| void | SetMean (const double _mean) |
| | Set mean.
|
| |
| void | SetStdDev (const double _stddev) |
| | Set stddev.
|
| |
|
| double | bias |
| | If type starts with GAUSSIAN, the bias we'll add.
|
| |
| double | mean |
| | If type starts with GAUSSIAN, the mean of the distribution from which we sample when adding noise.
|
| |
| double | precision |
| | If type==GAUSSIAN_QUANTIZED, the precision to which the output signal is rounded.
|
| |
| bool | quantized |
| | True if the type is GAUSSIAN_QUANTIZED.
|
| |
| double | stdDev |
| | If type starts with GAUSSIAN, the standard deviation of the distribution from which we sample when adding noise.
|
| |
Gaussian noise class.
Gaussian noise class for image sensors.
◆ NoiseType
Which noise types we support.
| Enumerator |
|---|
| NONE | |
| CUSTOM | |
| GAUSSIAN | |
◆ GaussianNoiseModel()
◆ ~GaussianNoiseModel()
◆ Apply()
| double Apply |
( |
double |
_in | ) |
|
|
inherited |
Apply noise to input data value.
- Parameters
-
- Returns
- Data with noise applied.
◆ ApplyImpl()
| double ApplyImpl |
( |
double |
_in | ) |
|
|
virtual |
Apply noise to input data value.
This gets overriden by derived classes, and called by Apply.
- Parameters
-
- Returns
- Data with noise applied.
Reimplemented from Noise.
◆ Fini()
◆ GetBias()
Accessor for bias.
- Returns
- Bias on output.
◆ GetMean()
Accessor for mean.
- Returns
- Mean of Gaussian noise.
◆ GetNoiseType()
Accessor for NoiseType.
- Returns
- Type of noise currently in use.
◆ GetStdDev()
| double GetStdDev |
( |
| ) |
const |
Accessor for stddev.
- Returns
- Standard deviation of Gaussian noise.
◆ Load()
| virtual void Load |
( |
sdf::ElementPtr |
_sdf | ) |
|
|
virtual |
Load noise parameters from sdf.
- Parameters
-
| [in] | _sdf | SDF parameters. |
| [in] | _sensor | Type of sensor. |
Reimplemented from Noise.
Reimplemented in ImageGaussianNoiseModel.
◆ Print()
| virtual void Print |
( |
std::ostream & |
_out | ) |
const |
|
virtual |
◆ SetCamera()
Set camera needed to create image noise.
This is only needed for image sensors, i.e. camera/multicamera/depth sensors, which use shaders for more efficient noise generation.
- Parameters
-
| [in] | _camera | Camera associated to an image sensor |
Reimplemented in ImageGaussianNoiseModel.
◆ SetCustomNoiseCallback()
| virtual void SetCustomNoiseCallback |
( |
boost::function< double(double)> |
_cb | ) |
|
|
virtualinherited |
Register a custom noise callback.
- Parameters
-
| [in] | _cb | Callback function for applying a custom noise model. This is useful if users want to use their own noise model from a sensor plugin. |
◆ SetMean()
| void SetMean |
( |
const double |
_mean | ) |
|
Set mean.
- Parameters
-
| [in] | _mean | Mean of Gaussian noise. |
◆ SetStdDev()
| void SetStdDev |
( |
const double |
_stddev | ) |
|
Set stddev.
- Parameters
-
| [in] | _stddev | Standard deviation of Gaussian noise. |
◆ bias
If type starts with GAUSSIAN, the bias we'll add.
◆ mean
If type starts with GAUSSIAN, the mean of the distribution from which we sample when adding noise.
◆ precision
If type==GAUSSIAN_QUANTIZED, the precision to which the output signal is rounded.
◆ quantized
True if the type is GAUSSIAN_QUANTIZED.
◆ stdDev
If type starts with GAUSSIAN, the standard deviation of the distribution from which we sample when adding noise.
The documentation for this class was generated from the following file: