12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include "dialogselgaussiannoise.h"
- #include "ui_dialogselgaussiannoise.h"
- DialogSelGaussianNoise::DialogSelGaussianNoise(QWidget *parent) :
- QDialog(parent),
- ui(new Ui::DialogSelGaussianNoise)
- {
- ui->setupUi(this);
- }
- DialogSelGaussianNoise::~DialogSelGaussianNoise()
- {
- delete ui;
- }
- float DialogSelGaussianNoise::getGaussianNoiseVariance()
- {
- if(!ui->textEditVariance->toPlainText().compare(""))
- {
- return 100;
- }
- else
- {
- return ui->textEditVariance->toPlainText().toFloat();
- }
- }
- float DialogSelGaussianNoise::getGaussianNoiseMean()
- {
- if(!ui->textEditMean->toPlainText().compare(""))
- {
- return 0;
- }
- else
- {
- return ui->textEditMean->toPlainText().toFloat();
- }
- }
|