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.
484 lines
11 KiB
484 lines
11 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>1269</width>
|
|
<height>752</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>图像锐化</string>
|
|
</property>
|
|
<widget class="QLabel" name="label_title">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>10</y>
|
|
<width>161</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_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>740</x>
|
|
<y>10</y>
|
|
<width>480</width>
|
|
<height>480</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>14</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="QPushButton" name="pushButton_open_file">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>90</y>
|
|
<width>111</width>
|
|
<height>28</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_sobel_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>230</y>
|
|
<width>171</width>
|
|
<height>151</height>
|
|
</rect>
|
|
</property>
|
|
<property name="title">
|
|
<string>Sobel算子</string>
|
|
</property>
|
|
<widget class="QPushButton" name="pushButton_sobel_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>110</y>
|
|
<width>93</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>确定</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radioButton_sobel_dx">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>20</y>
|
|
<width>121</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>X方向梯度</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radioButton_sobel_dy">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>50</y>
|
|
<width>121</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>Y方向梯度</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radioButton_sobel_dx_dy">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>80</y>
|
|
<width>121</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>X和Y方向梯度</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_laplace_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>400</y>
|
|
<width>171</width>
|
|
<height>111</height>
|
|
</rect>
|
|
</property>
|
|
<property name="title">
|
|
<string>Laplace算子</string>
|
|
</property>
|
|
<widget class="QPushButton" name="pushButton_laplace_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>60</y>
|
|
<width>93</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>确定</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="spinBox_laplace_ksize">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>30</y>
|
|
<width>46</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_title_9">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>30</y>
|
|
<width>51</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>核大小:</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QLabel" name="label_image_1">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>220</x>
|
|
<y>10</y>
|
|
<width>480</width>
|
|
<height>480</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Agency FB</family>
|
|
<pointsize>14</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="scaledContents">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_custom_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>530</y>
|
|
<width>271</width>
|
|
<height>211</height>
|
|
</rect>
|
|
</property>
|
|
<property name="title">
|
|
<string>自定义3*3卷积核</string>
|
|
</property>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_1">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>40</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>110</x>
|
|
<y>40</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>-1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>180</x>
|
|
<y>40</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_4">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>80</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>-1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_5">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>110</x>
|
|
<y>80</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>5.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_6">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>180</x>
|
|
<y>80</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>-1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_7">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>120</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_8">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>110</x>
|
|
<y>120</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>-1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_custom_filter_9">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>180</x>
|
|
<y>120</y>
|
|
<width>51</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-100.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>0.500000000000000</double>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_custom_filter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>90</x>
|
|
<y>160</y>
|
|
<width>93</width>
|
|
<height>28</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>确定</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QComboBox" name="comboBox_selector">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>180</y>
|
|
<width>111</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>40</x>
|
|
<y>140</y>
|
|
<width>111</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>选择锐化类型:</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|