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.

301 lines
20 KiB

2 years ago
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'DIP.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DigitalImageProcessing(object):
def setupUi(self, DigitalImageProcessing):
DigitalImageProcessing.setObjectName("DigitalImageProcessing")
DigitalImageProcessing.resize(975, 614)
self.centralwidget = QtWidgets.QWidget(DigitalImageProcessing)
self.centralwidget.setObjectName("centralwidget")
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox.setGeometry(QtCore.QRect(30, 40, 421, 321))
font = QtGui.QFont()
font.setFamily("Agency FB")
font.setPointSize(14)
self.groupBox.setFont(font)
self.groupBox.setObjectName("groupBox")
self.original_img = QtWidgets.QLabel(self.groupBox)
self.original_img.setGeometry(QtCore.QRect(40, 30, 351, 261))
self.original_img.setStyleSheet("background : rgb(0, 170, 255)")
self.original_img.setText("")
self.original_img.setObjectName("original_img")
self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_2.setGeometry(QtCore.QRect(520, 40, 411, 321))
font = QtGui.QFont()
font.setFamily("Agency FB")
font.setPointSize(14)
self.groupBox_2.setFont(font)
self.groupBox_2.setObjectName("groupBox_2")
self.fixed_img = QtWidgets.QLabel(self.groupBox_2)
self.fixed_img.setGeometry(QtCore.QRect(30, 30, 361, 261))
self.fixed_img.setStyleSheet("background : rgb(0, 170, 255)")
self.fixed_img.setText("")
self.fixed_img.setObjectName("fixed_img")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(390, 410, 191, 91))
self.pushButton.setObjectName("pushButton")
DigitalImageProcessing.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(DigitalImageProcessing)
self.menubar.setGeometry(QtCore.QRect(0, 0, 975, 21))
self.menubar.setObjectName("menubar")
self.menu = QtWidgets.QMenu(self.menubar)
self.menu.setObjectName("menu")
self.menu_2 = QtWidgets.QMenu(self.menubar)
self.menu_2.setObjectName("menu_2")
self.menu_3 = QtWidgets.QMenu(self.menubar)
self.menu_3.setObjectName("menu_3")
self.menu_Hough = QtWidgets.QMenu(self.menubar)
self.menu_Hough.setObjectName("menu_Hough")
self.menu_4 = QtWidgets.QMenu(self.menubar)
self.menu_4.setObjectName("menu_4")
self.menu_5 = QtWidgets.QMenu(self.menubar)
self.menu_5.setObjectName("menu_5")
self.menu_6 = QtWidgets.QMenu(self.menubar)
self.menu_6.setObjectName("menu_6")
self.menu_7 = QtWidgets.QMenu(self.menubar)
self.menu_7.setObjectName("menu_7")
self.menu_8 = QtWidgets.QMenu(self.menubar)
self.menu_8.setObjectName("menu_8")
DigitalImageProcessing.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(DigitalImageProcessing)
self.statusbar.setObjectName("statusbar")
DigitalImageProcessing.setStatusBar(self.statusbar)
self.actionyu = QtWidgets.QAction(DigitalImageProcessing)
self.actionyu.setObjectName("actionyu")
self.actionhuo = QtWidgets.QAction(DigitalImageProcessing)
self.actionhuo.setObjectName("actionhuo")
self.actionfei = QtWidgets.QAction(DigitalImageProcessing)
self.actionfei.setObjectName("actionfei")
self.actionjiafa = QtWidgets.QAction(DigitalImageProcessing)
self.actionjiafa.setObjectName("actionjiafa")
self.actionjianfa = QtWidgets.QAction(DigitalImageProcessing)
self.actionjianfa.setObjectName("actionjianfa")
self.actionchengfa = QtWidgets.QAction(DigitalImageProcessing)
self.actionchengfa.setObjectName("actionchengfa")
self.actionchufa = QtWidgets.QAction(DigitalImageProcessing)
self.actionchufa.setObjectName("actionchufa")
self.actionkuozhansuofang = QtWidgets.QAction(DigitalImageProcessing)
self.actionkuozhansuofang.setObjectName("actionkuozhansuofang")
self.actiontuxiangpingyi = QtWidgets.QAction(DigitalImageProcessing)
self.actiontuxiangpingyi.setObjectName("actiontuxiangpingyi")
self.actiontuxiangxuanzhuan = QtWidgets.QAction(DigitalImageProcessing)
self.actiontuxiangxuanzhuan.setObjectName("actiontuxiangxuanzhuan")
self.actiontuxiangfanzhuan = QtWidgets.QAction(DigitalImageProcessing)
self.actiontuxiangfanzhuan.setObjectName("actiontuxiangfanzhuan")
self.actionchuizhifanzhuan = QtWidgets.QAction(DigitalImageProcessing)
self.actionchuizhifanzhuan.setObjectName("actionchuizhifanzhuan")
self.actionhuiduzhifangtu = QtWidgets.QAction(DigitalImageProcessing)
self.actionhuiduzhifangtu.setObjectName("actionhuiduzhifangtu")
self.actioncaisezhifangtu = QtWidgets.QAction(DigitalImageProcessing)
self.actioncaisezhifangtu.setObjectName("actioncaisezhifangtu")
self.actionhuizhizhifangtu = QtWidgets.QAction(DigitalImageProcessing)
self.actionhuizhizhifangtu.setObjectName("actionhuizhizhifangtu")
self.actionfenduanxianxingbianhuanduizhifangtuxiugai = QtWidgets.QAction(DigitalImageProcessing)
self.actionfenduanxianxingbianhuanduizhifangtuxiugai.setObjectName("actionfenduanxianxingbianhuanduizhifangtuxiugai")
self.actionbianyuanjiancedejibenyuanli = QtWidgets.QAction(DigitalImageProcessing)
self.actionbianyuanjiancedejibenyuanli.setObjectName("actionbianyuanjiancedejibenyuanli")
self.actionRoberts = QtWidgets.QAction(DigitalImageProcessing)
self.actionRoberts.setObjectName("actionRoberts")
self.actionPrewitt_Sobel = QtWidgets.QAction(DigitalImageProcessing)
self.actionPrewitt_Sobel.setObjectName("actionPrewitt_Sobel")
self.actionLaplacian = QtWidgets.QAction(DigitalImageProcessing)
self.actionLaplacian.setObjectName("actionLaplacian")
self.actionLoG = QtWidgets.QAction(DigitalImageProcessing)
self.actionLoG.setObjectName("actionLoG")
self.actionCanny = QtWidgets.QAction(DigitalImageProcessing)
self.actionCanny.setObjectName("actionCanny")
self.actionxingtaixue = QtWidgets.QAction(DigitalImageProcessing)
self.actionxingtaixue.setObjectName("actionxingtaixue")
self.actionjiegouyuan = QtWidgets.QAction(DigitalImageProcessing)
self.actionjiegouyuan.setText("")
self.actionjiegouyuan.setObjectName("actionjiegouyuan")
self.actionjiegouyuandefenlei = QtWidgets.QAction(DigitalImageProcessing)
self.actionjiegouyuandefenlei.setObjectName("actionjiegouyuandefenlei")
self.actionfushi = QtWidgets.QAction(DigitalImageProcessing)
self.actionfushi.setObjectName("actionfushi")
self.actionpengzhang = QtWidgets.QAction(DigitalImageProcessing)
self.actionpengzhang.setObjectName("actionpengzhang")
self.actionkaiyunsuan = QtWidgets.QAction(DigitalImageProcessing)
self.actionkaiyunsuan.setObjectName("actionkaiyunsuan")
self.actionbiyunsuan = QtWidgets.QAction(DigitalImageProcessing)
self.actionbiyunsuan.setObjectName("actionbiyunsuan")
self.actionzao_sheng_miaoshuqi = QtWidgets.QAction(DigitalImageProcessing)
self.actionzao_sheng_miaoshuqi.setObjectName("actionzao_sheng_miaoshuqi")
self.actionjunzhileilvboqi = QtWidgets.QAction(DigitalImageProcessing)
self.actionjunzhileilvboqi.setObjectName("actionjunzhileilvboqi")
self.actionpaixutongjileilvboqi = QtWidgets.QAction(DigitalImageProcessing)
self.actionpaixutongjileilvboqi.setObjectName("actionpaixutongjileilvboqi")
self.actionxuanzexinglvboqi = QtWidgets.QAction(DigitalImageProcessing)
self.actionxuanzexinglvboqi.setObjectName("actionxuanzexinglvboqi")
self.actionfangshebianhuan = QtWidgets.QAction(DigitalImageProcessing)
self.actionfangshebianhuan.setObjectName("actionfangshebianhuan")
self.actionHough = QtWidgets.QAction(DigitalImageProcessing)
self.actionHough.setObjectName("actionHough")
self.actionHoughP = QtWidgets.QAction(DigitalImageProcessing)
self.actionHoughP.setObjectName("actionHoughP")
self.actionlingyupingjunfa = QtWidgets.QAction(DigitalImageProcessing)
self.actionlingyupingjunfa.setObjectName("actionlingyupingjunfa")
self.actionzhongzhilvbo = QtWidgets.QAction(DigitalImageProcessing)
self.actionzhongzhilvbo.setObjectName("actionzhongzhilvbo")
self.actionlixiang = QtWidgets.QAction(DigitalImageProcessing)
self.actionlixiang.setObjectName("actionlixiang")
self.actionButterworth = QtWidgets.QAction(DigitalImageProcessing)
self.actionButterworth.setObjectName("actionButterworth")
self.actionGauss = QtWidgets.QAction(DigitalImageProcessing)
self.actionGauss.setObjectName("actionGauss")
self.menu.addAction(self.actionyu)
self.menu.addAction(self.actionhuo)
self.menu.addAction(self.actionfei)
self.menu.addAction(self.actionjiafa)
self.menu.addAction(self.actionjianfa)
self.menu.addAction(self.actionchengfa)
self.menu.addAction(self.actionchufa)
self.menu_2.addAction(self.actionkuozhansuofang)
self.menu_2.addAction(self.actiontuxiangpingyi)
self.menu_2.addAction(self.actiontuxiangxuanzhuan)
self.menu_2.addAction(self.actiontuxiangfanzhuan)
self.menu_2.addAction(self.actionchuizhifanzhuan)
self.menu_2.addAction(self.actionfangshebianhuan)
self.menu_3.addAction(self.actionhuiduzhifangtu)
self.menu_3.addAction(self.actioncaisezhifangtu)
self.menu_3.addAction(self.actionhuizhizhifangtu)
self.menu_3.addAction(self.actionfenduanxianxingbianhuanduizhifangtuxiugai)
self.menu_Hough.addAction(self.actionHough)
self.menu_Hough.addAction(self.actionHoughP)
self.menu_4.addAction(self.actionbianyuanjiancedejibenyuanli)
self.menu_4.addAction(self.actionRoberts)
self.menu_4.addAction(self.actionPrewitt_Sobel)
self.menu_4.addAction(self.actionLaplacian)
self.menu_4.addAction(self.actionLoG)
self.menu_4.addAction(self.actionCanny)
self.menu_5.addAction(self.actionfushi)
self.menu_5.addAction(self.actionpengzhang)
self.menu_5.addAction(self.actionkaiyunsuan)
self.menu_5.addAction(self.actionbiyunsuan)
self.menu_6.addAction(self.actionzao_sheng_miaoshuqi)
self.menu_6.addAction(self.actionjunzhileilvboqi)
self.menu_6.addAction(self.actionpaixutongjileilvboqi)
self.menu_6.addAction(self.actionxuanzexinglvboqi)
self.menu_7.addAction(self.actionlingyupingjunfa)
self.menu_7.addAction(self.actionzhongzhilvbo)
self.menu_8.addAction(self.actionlixiang)
self.menu_8.addAction(self.actionButterworth)
self.menu_8.addAction(self.actionGauss)
self.menubar.addAction(self.menu.menuAction())
self.menubar.addAction(self.menu_2.menuAction())
self.menubar.addAction(self.menu_3.menuAction())
self.menubar.addAction(self.menu_Hough.menuAction())
self.menubar.addAction(self.menu_4.menuAction())
self.menubar.addAction(self.menu_5.menuAction())
self.menubar.addAction(self.menu_6.menuAction())
self.menubar.addAction(self.menu_7.menuAction())
self.menubar.addAction(self.menu_8.menuAction())
self.retranslateUi(DigitalImageProcessing)
self.pushButton.clicked.connect(DigitalImageProcessing.openImg)
self.actionyu.triggered.connect(DigitalImageProcessing.alAnd)
self.actionhuo.triggered.connect(DigitalImageProcessing.alOr)
self.actionfei.triggered.connect(DigitalImageProcessing.alNegation)
self.actionjiafa.triggered.connect(DigitalImageProcessing.alAdd)
self.actionjianfa.triggered.connect(DigitalImageProcessing.alSubtract)
self.actionchengfa.triggered.connect(DigitalImageProcessing.alMulty)
self.actionchufa.triggered.connect(DigitalImageProcessing.alDivide)
self.actiontuxiangfanzhuan.triggered.connect(DigitalImageProcessing.horizonal)
self.actionchuizhifanzhuan.triggered.connect(DigitalImageProcessing.vertical)
self.actiontuxiangpingyi.triggered.connect(DigitalImageProcessing.moveImg)
self.actiontuxiangxuanzhuan.triggered.connect(DigitalImageProcessing.rotation)
self.actionkuozhansuofang.triggered.connect(DigitalImageProcessing.extend)
self.actionfangshebianhuan.triggered.connect(DigitalImageProcessing.affine)
self.actionhuiduzhifangtu.triggered.connect(DigitalImageProcessing.histGrey)
self.actioncaisezhifangtu.triggered.connect(DigitalImageProcessing.histRGB)
self.actionhuizhizhifangtu.triggered.connect(DigitalImageProcessing.histD)
self.actionfenduanxianxingbianhuanduizhifangtuxiugai.triggered.connect(DigitalImageProcessing.editHist)
self.actionHough.triggered.connect(DigitalImageProcessing.houghLines)
self.actionHoughP.triggered.connect(DigitalImageProcessing.houghLinesP)
self.actionbianyuanjiancedejibenyuanli.triggered.connect(DigitalImageProcessing.basic_of_edge_detection)
self.actionRoberts.triggered.connect(DigitalImageProcessing.roberts)
self.actionPrewitt_Sobel.triggered.connect(DigitalImageProcessing.sobel)
self.actionLaplacian.triggered.connect(DigitalImageProcessing.laplacian)
self.actionLoG.triggered.connect(DigitalImageProcessing.LoG)
self.actionCanny.triggered.connect(DigitalImageProcessing.canny)
self.actionfushi.triggered.connect(DigitalImageProcessing.corrode)
self.actionpengzhang.triggered.connect(DigitalImageProcessing.dilation)
self.actionkaiyunsuan.triggered.connect(DigitalImageProcessing.open)
self.actionbiyunsuan.triggered.connect(DigitalImageProcessing.close)
self.actionzao_sheng_miaoshuqi.triggered.connect(DigitalImageProcessing.describe)
self.actionjunzhileilvboqi.triggered.connect(DigitalImageProcessing.meanFilter)
self.actionpaixutongjileilvboqi.triggered.connect(DigitalImageProcessing.sortFilter)
self.actionxuanzexinglvboqi.triggered.connect(DigitalImageProcessing.selectiveFilter)
self.actionlingyupingjunfa.triggered.connect(DigitalImageProcessing.avg_blur)
self.actionzhongzhilvbo.triggered.connect(DigitalImageProcessing.mid_blur)
self.actionlixiang.triggered.connect(DigitalImageProcessing.low_pass)
self.actionButterworth.triggered.connect(DigitalImageProcessing.butterworth)
self.actionGauss.triggered.connect(DigitalImageProcessing.gauss)
QtCore.QMetaObject.connectSlotsByName(DigitalImageProcessing)
def retranslateUi(self, DigitalImageProcessing):
_translate = QtCore.QCoreApplication.translate
DigitalImageProcessing.setWindowTitle(_translate("DigitalImageProcessing", "数字图像处理"))
self.groupBox.setTitle(_translate("DigitalImageProcessing", "原始图片"))
self.groupBox_2.setTitle(_translate("DigitalImageProcessing", "修改后图片"))
self.pushButton.setText(_translate("DigitalImageProcessing", "打开图片"))
self.menu.setTitle(_translate("DigitalImageProcessing", "数字图像的计算"))
self.menu_2.setTitle(_translate("DigitalImageProcessing", "数字图像的几何变换"))
self.menu_3.setTitle(_translate("DigitalImageProcessing", "数字图像直方图"))
self.menu_Hough.setTitle(_translate("DigitalImageProcessing", "使用Hough变换实现线条变换检测"))
self.menu_4.setTitle(_translate("DigitalImageProcessing", "边缘检测"))
self.menu_5.setTitle(_translate("DigitalImageProcessing", "数字图像形态学"))
self.menu_6.setTitle(_translate("DigitalImageProcessing", "噪声滤除"))
self.menu_7.setTitle(_translate("DigitalImageProcessing", "空域的平滑"))
self.menu_8.setTitle(_translate("DigitalImageProcessing", "频域的平滑"))
self.actionyu.setText(_translate("DigitalImageProcessing", "与运算"))
self.actionhuo.setText(_translate("DigitalImageProcessing", "或运算"))
self.actionfei.setText(_translate("DigitalImageProcessing", "非运算"))
self.actionjiafa.setText(_translate("DigitalImageProcessing", "加法运算"))
self.actionjianfa.setText(_translate("DigitalImageProcessing", "减法运算"))
self.actionchengfa.setText(_translate("DigitalImageProcessing", "乘法运算"))
self.actionchufa.setText(_translate("DigitalImageProcessing", "除法运算"))
self.actionkuozhansuofang.setText(_translate("DigitalImageProcessing", "扩展缩放"))
self.actiontuxiangpingyi.setText(_translate("DigitalImageProcessing", "图像平移"))
self.actiontuxiangxuanzhuan.setText(_translate("DigitalImageProcessing", "图像旋转"))
self.actiontuxiangfanzhuan.setText(_translate("DigitalImageProcessing", "图像水平翻转"))
self.actionchuizhifanzhuan.setText(_translate("DigitalImageProcessing", "图像垂直翻转"))
self.actionhuiduzhifangtu.setText(_translate("DigitalImageProcessing", "灰度直方图"))
self.actioncaisezhifangtu.setText(_translate("DigitalImageProcessing", "彩色直方图"))
self.actionhuizhizhifangtu.setText(_translate("DigitalImageProcessing", "绘制直方图"))
self.actionfenduanxianxingbianhuanduizhifangtuxiugai.setText(_translate("DigitalImageProcessing", "分段线性变换对直方图修改"))
self.actionbianyuanjiancedejibenyuanli.setText(_translate("DigitalImageProcessing", "边缘检测的基本原理与图像增强"))
self.actionRoberts.setText(_translate("DigitalImageProcessing", "Roberts"))
self.actionPrewitt_Sobel.setText(_translate("DigitalImageProcessing", "Prewitt & Sobel"))
self.actionLaplacian.setText(_translate("DigitalImageProcessing", "Laplacian"))
self.actionLoG.setText(_translate("DigitalImageProcessing", "LoG"))
self.actionCanny.setText(_translate("DigitalImageProcessing", "Canny"))
self.actionxingtaixue.setText(_translate("DigitalImageProcessing", "图像形态学操作"))
self.actionjiegouyuandefenlei.setText(_translate("DigitalImageProcessing", "jiegouyuandefenlei"))
self.actionfushi.setText(_translate("DigitalImageProcessing", "腐蚀"))
self.actionpengzhang.setText(_translate("DigitalImageProcessing", "膨胀"))
self.actionkaiyunsuan.setText(_translate("DigitalImageProcessing", "开运算"))
self.actionbiyunsuan.setText(_translate("DigitalImageProcessing", "闭运算"))
self.actionzao_sheng_miaoshuqi.setText(_translate("DigitalImageProcessing", "噪声描述器"))
self.actionjunzhileilvboqi.setText(_translate("DigitalImageProcessing", "均值滤波器"))
self.actionpaixutongjileilvboqi.setText(_translate("DigitalImageProcessing", "排序统计类滤波器"))
self.actionxuanzexinglvboqi.setText(_translate("DigitalImageProcessing", "选择性滤波器"))
self.actionfangshebianhuan.setText(_translate("DigitalImageProcessing", "仿射变换"))
self.actionHough.setText(_translate("DigitalImageProcessing", "使用Hough变换实现线条变化检测"))
self.actionHoughP.setText(_translate("DigitalImageProcessing", "HoughP"))
self.actionlingyupingjunfa.setText(_translate("DigitalImageProcessing", "邻域平均法"))
self.actionzhongzhilvbo.setText(_translate("DigitalImageProcessing", "中值滤波法"))
self.actionlixiang.setText(_translate("DigitalImageProcessing", "理想低通滤波"))
self.actionButterworth.setText(_translate("DigitalImageProcessing", "巴特沃斯低通滤波"))
self.actionGauss.setText(_translate("DigitalImageProcessing", "高斯低通滤波"))