You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
797 lines
18 KiB
797 lines
18 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Form</class>
|
|
<widget class="QWidget" name="Form">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1334</width>
|
|
<height>770</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>图像的加噪和平滑</string>
|
|
</property>
|
|
<widget class="QGroupBox" name="groupBox">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>650</x>
|
|
<y>20</y>
|
|
<width>361</width>
|
|
<height>201</height>
|
|
</rect>
|
|
</property>
|
|
<property name="title">
|
|
<string/>
|
|
</property>
|
|
<widget class="QGroupBox" name="groupBox_median_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>100</y>
|
|
<width>161</width>
|
|
<height>91</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>8</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>中值滤波</string>
|
|
</property>
|
|
<widget class="QLabel" name="label_title_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>20</y>
|
|
<width>51</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>核大小:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="spinBox_median_ksize">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>20</y>
|
|
<width>46</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_median_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>50</y>
|
|
<width>111</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>开始处理</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_gauss_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>190</x>
|
|
<y>10</y>
|
|
<width>161</width>
|
|
<height>91</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>8</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>高斯滤波</string>
|
|
</property>
|
|
<widget class="QLabel" name="label_title_7">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>20</y>
|
|
<width>51</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>核大小:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="spinBox_gauss_blur_ksize">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>20</y>
|
|
<width>46</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_gauss_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>50</y>
|
|
<width>111</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>开始处理</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_mean_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>10</y>
|
|
<width>161</width>
|
|
<height>91</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>8</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>均值滤波</string>
|
|
</property>
|
|
<widget class="QLabel" name="label_title_9">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>20</y>
|
|
<width>51</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>核大小:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="spinBox_mean_ksize">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>20</y>
|
|
<width>46</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_mean_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>50</y>
|
|
<width>111</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>开始处理</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_double_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>190</x>
|
|
<y>100</y>
|
|
<width>161</width>
|
|
<height>91</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>8</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>双边滤波</string>
|
|
</property>
|
|
<widget class="QPushButton" name="pushButton_double_blur_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>30</y>
|
|
<width>111</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>开始处理</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_open_file">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>30</y>
|
|
<width>101</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>打开图片</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="default">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>150</x>
|
|
<y>20</y>
|
|
<width>461</width>
|
|
<height>201</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>9</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string/>
|
|
</property>
|
|
<property name="flat">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<widget class="QGroupBox" name="groupBox_salt_noise">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>10</y>
|
|
<width>141</width>
|
|
<height>181</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>7</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>椒盐噪声</string>
|
|
</property>
|
|
<widget class="QLabel" name="label">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>30</y>
|
|
<width>41</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>比例:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_salt_proportion">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>50</x>
|
|
<y>30</y>
|
|
<width>61</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>0.900000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.010000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>0.050000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_salt_pepper_noise">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>130</y>
|
|
<width>101</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>确定</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radioButton_1">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>60</y>
|
|
<width>101</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>椒盐(随机)</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radioButton_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>80</y>
|
|
<width>101</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>盐(白点)</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radioButton_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>100</y>
|
|
<width>101</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>椒(黑点)</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_speckle_noise">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>310</x>
|
|
<y>10</y>
|
|
<width>141</width>
|
|
<height>181</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>7</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>乘积性噪声</string>
|
|
</property>
|
|
<widget class="QPushButton" name="pushButton_speckle_noise">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>130</y>
|
|
<width>101</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>确定</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_title_11">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>30</y>
|
|
<width>41</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>均值:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_title_12">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>60</y>
|
|
<width>41</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>方差:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_speckle_var">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>60</x>
|
|
<y>60</y>
|
|
<width>61</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.010000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>0.050000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_speckle_mean">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>60</x>
|
|
<y>30</y>
|
|
<width>61</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-1.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.010000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>0.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_gauss_noise">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>160</x>
|
|
<y>10</y>
|
|
<width>141</width>
|
|
<height>181</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>7</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="title">
|
|
<string>高斯噪声</string>
|
|
</property>
|
|
<widget class="QPushButton" name="pushButton_gasuss_noise">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>130</y>
|
|
<width>101</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>确定</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_gauss_mean">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>60</x>
|
|
<y>30</y>
|
|
<width>61</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-1.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.010000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>0.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_title_8">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>30</y>
|
|
<width>41</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>均值:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_gauss_var">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>60</x>
|
|
<y>60</y>
|
|
<width>61</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.010000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>0.050000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_title_10">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>60</y>
|
|
<width>41</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>方差:</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QComboBox" name="comboBox_noise_type">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>110</y>
|
|
<width>100</width>
|
|
<height>20</height>
|
|
</rect>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>-1</number>
|
|
</property>
|
|
<property name="maxVisibleItems">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="insertPolicy">
|
|
<enum>QComboBox::InsertAtBottom</enum>
|
|
</property>
|
|
<property name="sizeAdjustPolicy">
|
|
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
|
|
</property>
|
|
<property name="frame">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="modelColumn">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>80</y>
|
|
<width>100</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>添加噪声类型:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>150</y>
|
|
<width>100</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>平滑滤波类型:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="comboBox_filter_type">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>180</y>
|
|
<width>100</width>
|
|
<height>20</height>
|
|
</rect>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>-1</number>
|
|
</property>
|
|
<property name="maxVisibleItems">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="frame">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="modelColumn">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_title">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>1030</x>
|
|
<y>30</y>
|
|
<width>281</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>22</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>图像加噪和平滑</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_image_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>880</x>
|
|
<y>280</y>
|
|
<width>420</width>
|
|
<height>400</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>12</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::Box</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string>平滑滤波</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_image_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>450</x>
|
|
<y>280</y>
|
|
<width>420</width>
|
|
<height>400</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>12</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::Box</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string>加噪</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_image_1">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>280</y>
|
|
<width>420</width>
|
|
<height>400</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>12</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::Box</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string>原图</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|