Skip to content

Commit

Permalink
Increase smooth image operation kernel ranges.
Browse files Browse the repository at this point in the history
Increase dilate and erode no. of iteration ranges.
  • Loading branch information
nickdademo committed Jan 12, 2014
1 parent a2d1f00 commit fe92c82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/ImageProcessingSettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ ImageProcessingSettingsDialog::ImageProcessingSettingsDialog(QWidget *parent) :
connect(ui->applyButton,SIGNAL(released()),SLOT(updateStoredSettingsFromDialog()));
connect(ui->smoothTypeGroup,SIGNAL(buttonReleased(QAbstractButton*)),SLOT(smoothTypeChange(QAbstractButton*)));
// dilateIterationsEdit input string validation
QRegExp rx5("[1-9]\\d{0,1}"); // Integers 1 to 99
QRegExp rx5("[1-9]\\d{0,2}"); // Integers 1 to 999
QRegExpValidator *validator5 = new QRegExpValidator(rx5, 0);
ui->dilateIterationsEdit->setValidator(validator5);
// erodeIterationsEdit input string validation
QRegExp rx6("[1-9]\\d{0,1}"); // Integers 1 to 99
QRegExp rx6("[1-9]\\d{0,2}"); // Integers 1 to 999
QRegExpValidator *validator6 = new QRegExpValidator(rx6, 0);
ui->erodeIterationsEdit->setValidator(validator6);
// cannyThresh1Edit input string validation
Expand Down Expand Up @@ -168,11 +168,11 @@ void ImageProcessingSettingsDialog::smoothTypeChange(QAbstractButton *input)
if(input==(QAbstractButton*)ui->smoothBlurButton)
{
// smoothParam1Edit input string validation
QRegExp rx1("[1-9]\\d{0,1}"); // Integers 1 to 99
QRegExp rx1("[1-9]\\d{0,2}"); // Integers 1 to 999
QRegExpValidator *validator1 = new QRegExpValidator(rx1, 0);
ui->smoothParam1Edit->setValidator(validator1);
// smoothParam2Edit input string validation
QRegExp rx2("[1-9]\\d{0,1}"); // Integers 1 to 99
QRegExp rx2("[1-9]\\d{0,2}"); // Integers 1 to 999
QRegExpValidator *validator2 = new QRegExpValidator(rx2, 0);
ui->smoothParam2Edit->setValidator(validator2);
// Enable/disable appropriate parameter inputs
Expand All @@ -181,8 +181,8 @@ void ImageProcessingSettingsDialog::smoothTypeChange(QAbstractButton *input)
ui->smoothParam3Edit->setEnabled(false);
ui->smoothParam4Edit->setEnabled(false);
// Set parameter range labels
ui->smoothParam1RangeLabel->setText("[1-99]");
ui->smoothParam2RangeLabel->setText("[1-99]");
ui->smoothParam1RangeLabel->setText("[1-999]");
ui->smoothParam2RangeLabel->setText("[1-999]");
ui->smoothParam3RangeLabel->setText("");
ui->smoothParam4RangeLabel->setText("");
// Set parameter labels
Expand Down
4 changes: 2 additions & 2 deletions src/ImageProcessingSettingsDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
</font>
</property>
<property name="text">
<string>[1-99]</string>
<string>[1-999]</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -754,7 +754,7 @@
</font>
</property>
<property name="text">
<string>[1-99]</string>
<string>[1-999]</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit fe92c82

Please sign in to comment.