2011-06-14 23:47:52 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2012-09-09 23:07:36 +00:00
|
|
|
# Form implementation generated from reading ui file './imageview/ImageViewTemplate.ui'
|
2011-06-14 23:47:52 +00:00
|
|
|
#
|
2012-09-09 23:07:36 +00:00
|
|
|
# Created: Sun Sep 9 14:41:31 2012
|
|
|
|
# by: pyside-uic 0.2.13 running on PySide 1.1.0
|
2011-06-14 23:47:52 +00:00
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
2012-09-09 23:07:36 +00:00
|
|
|
from PySide import QtCore, QtGui
|
2011-06-14 23:47:52 +00:00
|
|
|
|
|
|
|
class Ui_Form(object):
|
|
|
|
def setupUi(self, Form):
|
2012-09-09 23:07:36 +00:00
|
|
|
Form.setObjectName("Form")
|
2011-06-14 23:47:52 +00:00
|
|
|
Form.resize(726, 588)
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout_3 = QtGui.QGridLayout(Form)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout_3.setSpacing(0)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.splitter = QtGui.QSplitter(Form)
|
|
|
|
self.splitter.setOrientation(QtCore.Qt.Vertical)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.splitter.setObjectName("splitter")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.layoutWidget = QtGui.QWidget(self.splitter)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.layoutWidget.setObjectName("layoutWidget")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout = QtGui.QGridLayout(self.layoutWidget)
|
|
|
|
self.gridLayout.setSpacing(0)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.gridLayout.setObjectName("gridLayout")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.graphicsView = GraphicsView(self.layoutWidget)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.graphicsView.setObjectName("graphicsView")
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout.addWidget(self.graphicsView, 0, 0, 2, 1)
|
|
|
|
self.histogram = HistogramLUTWidget(self.layoutWidget)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.histogram.setObjectName("histogram")
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout.addWidget(self.histogram, 0, 1, 1, 2)
|
2011-06-14 23:47:52 +00:00
|
|
|
self.roiBtn = QtGui.QPushButton(self.layoutWidget)
|
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(1)
|
|
|
|
sizePolicy.setHeightForWidth(self.roiBtn.sizePolicy().hasHeightForWidth())
|
|
|
|
self.roiBtn.setSizePolicy(sizePolicy)
|
|
|
|
self.roiBtn.setCheckable(True)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.roiBtn.setObjectName("roiBtn")
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout.addWidget(self.roiBtn, 1, 1, 1, 1)
|
2011-06-14 23:47:52 +00:00
|
|
|
self.normBtn = QtGui.QPushButton(self.layoutWidget)
|
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(1)
|
|
|
|
sizePolicy.setHeightForWidth(self.normBtn.sizePolicy().hasHeightForWidth())
|
|
|
|
self.normBtn.setSizePolicy(sizePolicy)
|
|
|
|
self.normBtn.setCheckable(True)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normBtn.setObjectName("normBtn")
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout.addWidget(self.normBtn, 1, 2, 1, 1)
|
|
|
|
self.roiPlot = PlotWidget(self.splitter)
|
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.roiPlot.sizePolicy().hasHeightForWidth())
|
|
|
|
self.roiPlot.setSizePolicy(sizePolicy)
|
|
|
|
self.roiPlot.setMinimumSize(QtCore.QSize(0, 40))
|
2012-09-09 23:07:36 +00:00
|
|
|
self.roiPlot.setObjectName("roiPlot")
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout_3.addWidget(self.splitter, 0, 0, 1, 1)
|
|
|
|
self.normGroup = QtGui.QGroupBox(Form)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normGroup.setObjectName("normGroup")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2 = QtGui.QGridLayout(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.setSpacing(0)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.normSubtractRadio = QtGui.QRadioButton(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normSubtractRadio.setObjectName("normSubtractRadio")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normSubtractRadio, 0, 2, 1, 1)
|
|
|
|
self.normDivideRadio = QtGui.QRadioButton(self.normGroup)
|
|
|
|
self.normDivideRadio.setChecked(False)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normDivideRadio.setObjectName("normDivideRadio")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normDivideRadio, 0, 1, 1, 1)
|
|
|
|
self.label_5 = QtGui.QLabel(self.normGroup)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setWeight(75)
|
|
|
|
font.setBold(True)
|
|
|
|
self.label_5.setFont(font)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.label_5.setObjectName("label_5")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1)
|
|
|
|
self.label_3 = QtGui.QLabel(self.normGroup)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setWeight(75)
|
|
|
|
font.setBold(True)
|
|
|
|
self.label_3.setFont(font)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.label_3.setObjectName("label_3")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
|
|
|
|
self.label_4 = QtGui.QLabel(self.normGroup)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setWeight(75)
|
|
|
|
font.setBold(True)
|
|
|
|
self.label_4.setFont(font)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.label_4.setObjectName("label_4")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
|
|
|
|
self.normROICheck = QtGui.QCheckBox(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normROICheck.setObjectName("normROICheck")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normROICheck, 1, 1, 1, 1)
|
|
|
|
self.normXBlurSpin = QtGui.QDoubleSpinBox(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normXBlurSpin.setObjectName("normXBlurSpin")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normXBlurSpin, 2, 2, 1, 1)
|
|
|
|
self.label_8 = QtGui.QLabel(self.normGroup)
|
|
|
|
self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.label_8.setObjectName("label_8")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.label_8, 2, 1, 1, 1)
|
|
|
|
self.label_9 = QtGui.QLabel(self.normGroup)
|
|
|
|
self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.label_9.setObjectName("label_9")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.label_9, 2, 3, 1, 1)
|
|
|
|
self.normYBlurSpin = QtGui.QDoubleSpinBox(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normYBlurSpin.setObjectName("normYBlurSpin")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normYBlurSpin, 2, 4, 1, 1)
|
|
|
|
self.label_10 = QtGui.QLabel(self.normGroup)
|
|
|
|
self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.label_10.setObjectName("label_10")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.label_10, 2, 5, 1, 1)
|
|
|
|
self.normOffRadio = QtGui.QRadioButton(self.normGroup)
|
|
|
|
self.normOffRadio.setChecked(True)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normOffRadio.setObjectName("normOffRadio")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normOffRadio, 0, 3, 1, 1)
|
|
|
|
self.normTimeRangeCheck = QtGui.QCheckBox(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normTimeRangeCheck.setObjectName("normTimeRangeCheck")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normTimeRangeCheck, 1, 3, 1, 1)
|
|
|
|
self.normFrameCheck = QtGui.QCheckBox(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normFrameCheck.setObjectName("normFrameCheck")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normFrameCheck, 1, 2, 1, 1)
|
|
|
|
self.normTBlurSpin = QtGui.QDoubleSpinBox(self.normGroup)
|
2012-09-09 23:07:36 +00:00
|
|
|
self.normTBlurSpin.setObjectName("normTBlurSpin")
|
2011-06-14 23:47:52 +00:00
|
|
|
self.gridLayout_2.addWidget(self.normTBlurSpin, 2, 6, 1, 1)
|
2012-03-02 02:55:32 +00:00
|
|
|
self.gridLayout_3.addWidget(self.normGroup, 1, 0, 1, 1)
|
2011-06-14 23:47:52 +00:00
|
|
|
|
|
|
|
self.retranslateUi(Form)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
|
|
|
|
|
|
|
def retranslateUi(self, Form):
|
|
|
|
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
|
2012-03-02 02:55:32 +00:00
|
|
|
self.roiBtn.setText(QtGui.QApplication.translate("Form", "ROI", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normBtn.setText(QtGui.QApplication.translate("Form", "Norm", None, QtGui.QApplication.UnicodeUTF8))
|
2011-06-14 23:47:52 +00:00
|
|
|
self.normGroup.setTitle(QtGui.QApplication.translate("Form", "Normalization", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normSubtractRadio.setText(QtGui.QApplication.translate("Form", "Subtract", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normDivideRadio.setText(QtGui.QApplication.translate("Form", "Divide", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_5.setText(QtGui.QApplication.translate("Form", "Operation:", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_3.setText(QtGui.QApplication.translate("Form", "Mean:", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_4.setText(QtGui.QApplication.translate("Form", "Blur:", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normROICheck.setText(QtGui.QApplication.translate("Form", "ROI", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_8.setText(QtGui.QApplication.translate("Form", "X", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_9.setText(QtGui.QApplication.translate("Form", "Y", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_10.setText(QtGui.QApplication.translate("Form", "T", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normOffRadio.setText(QtGui.QApplication.translate("Form", "Off", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normTimeRangeCheck.setText(QtGui.QApplication.translate("Form", "Time range", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
|
2012-03-02 02:55:32 +00:00
|
|
|
from pyqtgraph.widgets.GraphicsView import GraphicsView
|
|
|
|
from pyqtgraph.widgets.PlotWidget import PlotWidget
|
|
|
|
from pyqtgraph.widgets.HistogramLUTWidget import HistogramLUTWidget
|