Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
yeyeyeping committed Mar 22, 2023
1 parent bf39896 commit 37ae183
Show file tree
Hide file tree
Showing 41 changed files with 10 additions and 8 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Logic/Common/__pycache__/network.cpython-38.pyc
Binary file not shown.
Binary file added Logic/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added Logic/utils/__pycache__/Pathdb.cpython-38.pyc
Binary file not shown.
Binary file added Logic/utils/__pycache__/utils.cpython-37.pyc
Binary file not shown.
Binary file added Logic/utils/__pycache__/utils.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion Logic/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def QImageToGrayCvMat(incomingImage):
height = incomingImage.height()

ptr = incomingImage.constBits()
arr = np.array(ptr).reshape(height, width) # Copies the data
arr = np.array(ptr).reshape(height, incomingImage.bytesPerLine()) # Copies the data
return arr


Expand Down
4 changes: 2 additions & 2 deletions Model/Scribble.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class SCRIBBLE_TYPE(enum.Flag):


class Point:
x: int
y: int
# x: int
# y: int

def __init__(self, x, y):
self.x = x
Expand Down
Binary file added Model/__pycache__/GlobalViewModel.cpython-37.pyc
Binary file not shown.
Binary file added Model/__pycache__/GlobalViewModel.cpython-38.pyc
Binary file not shown.
Binary file added Model/__pycache__/ImageLabelModel.cpython-37.pyc
Binary file not shown.
Binary file added Model/__pycache__/ImageLabelModel.cpython-38.pyc
Binary file not shown.
Binary file added Model/__pycache__/Scribble.cpython-38.pyc
Binary file not shown.
Binary file added Model/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added Res/mask/mask_spleen_img0003_133.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/mask/mask_spleen_img0003_140.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0003_133.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0003_140.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0004_103.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0004_53.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0005_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0006_102.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0007_110.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/spleen_img0009_59.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/tumor_Brats18_CBICA_AAP_1_img_108.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/tumor_Brats18_CBICA_AAP_1_img_84.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/tumor_Brats18_CBICA_ABB_1_img_91.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/tumor_Brats18_CBICA_ABE_1_img_81.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Res/test/tumor_Brats18_CBICA_ABE_1_img_97.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Res/weight/iter_15000.pth
Binary file not shown.
Binary file added Res/weight/iter_15000.pth.bak
Binary file not shown.
Binary file added Scribble.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions UI/ApplicationWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def initUI(self):
'''设置菜单栏'''

mainMenu = self.menuBar()
fileMenu = mainMenu.addMenu('&File')
fileMenu = mainMenu.addMenu('&文件')
# 文件菜单
self.openAction = QAction(QIcon(get_resource_path("Res/Image/open.bmp")), '打开图片', self)
self.openAction.setShortcut('Ctrl+O')
Expand Down Expand Up @@ -93,6 +93,7 @@ def initUI(self):
self.editFileList2.setFixedHeight(30)
self.editFileList2.setMinimumWidth(600)
self.editFileList2.setFocusPolicy(Qt.NoFocus)

hlbox2.addWidget(self.editFileList2)
hlbox2.addStretch(10)
self.annotationButton2 = QPushButton("加载输出路径")
Expand All @@ -101,8 +102,8 @@ def initUI(self):
hlbox2.addWidget(self.annotationButton2)
mainvlayout.addLayout(hlbox2)

self.fileListView = QListView(self)
self.fileListView.setMinimumWidth(100)
self.fileListView = QTableView(self)
self.fileListView.setMinimumWidth(450)
self.fileListView.setMinimumHeight(200)
self.fileModel = QFileSystemModel(self)
# self.fileListView.selectionChanged
Expand Down Expand Up @@ -202,6 +203,7 @@ def initUI(self):
self.auxWidget = MaskSaveWidget()
self.auxWidget.resultSignal.connect(self.handle_save)
self.auxWidget.setWindowModality(Qt.WindowModality.ApplicationModal)
# self.auxWidget.setParent(self)
ApplicationWindow.center(self.auxWidget)
vLayout.addStretch(1)
self.setCentralWidget(self.centerWidget)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file added UI/__pycache__/ApplicationWindow.cpython-37.pyc
Binary file not shown.
Binary file added UI/__pycache__/ApplicationWindow.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import sys
from PySide6.QtWidgets import QApplication, QStyleFactory

from qt_material import apply_stylesheet
from UI.ApplicationWindow import ApplicationWindow

if __name__ == "__main__":
app = QApplication()
main = ApplicationWindow()
main.setStyle(QStyleFactory.create("window"))
apply_stylesheet(main, theme='light_cyan.xml')
sys.exit(app.exec())

0 comments on commit 37ae183

Please sign in to comment.