From 3001bebb6deb1f24f8c41d6e003d3840f8c05597 Mon Sep 17 00:00:00 2001 From: Lin Han Date: Mon, 5 Sep 2022 07:20:08 -0400 Subject: [PATCH] feat(rebrand) --- EISegMed3D/CMakeLists.txt | 2 +- EISegMed3D/EISegMed3D.py | 38 ++++++++++----------------- EISegMed3D/Resources/UI/EISegMed3D.ui | 4 +-- requirments.txt | 1 - 4 files changed, 17 insertions(+), 28 deletions(-) diff --git a/EISegMed3D/CMakeLists.txt b/EISegMed3D/CMakeLists.txt index 4565a0a..201a2a3 100644 --- a/EISegMed3D/CMakeLists.txt +++ b/EISegMed3D/CMakeLists.txt @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -set(MODULE_NAME placePoint) +set(MODULE_NAME EISegMed3D) #----------------------------------------------------------------------------- set(MODULE_PYTHON_SCRIPTS diff --git a/EISegMed3D/EISegMed3D.py b/EISegMed3D/EISegMed3D.py index 5d8ee6f..2f2eda6 100644 --- a/EISegMed3D/EISegMed3D.py +++ b/EISegMed3D/EISegMed3D.py @@ -68,34 +68,25 @@ class EISegMed3D(ScriptedLoadableModule): - """Uses ScriptedLoadableModule base class, available at: - https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py - """ - def __init__(self, parent): ScriptedLoadableModule.__init__(self, parent) self.parent.title = "EISegMed3D" # TODO: make this more human readable by adding spaces self.parent.categories = [ - "Interactive Segmentation" + "Segmentation" ] # TODO: set categories (folders where the module shows up in the module selector) self.parent.dependencies = [] # TODO: add here list of module names that this module requires - self.parent.contributors = ["Lin Han, Daisy (Baidu Corp.)"] + self.parent.contributors = ["Lin Han(NYU Tandon School of Engineering), Daisy (Baidu Corp.)"] # TODO: update with short description of the module and a link to online module documentation self.parent.helpText = """ -This is an example of scripted loadable module bundled in an extension. -See more information in module documentation. +An extension to perform efficient interactive segmentation enabled by deep learning. Download model and parameter from the plugin website, specify the model and parameter paths, click load model, select a data folder and add positive or negative points to get segmentation results. """ # TODO: replace with organization, grant and thanks self.parent.acknowledgementText = """ -This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc., Andras Lasso, PerkLab, -and Steve Pieper, Isomics, Inc. and was partially funded by NIH grant 3P41RR013218-12S1. """ - # Additional initialization step after application startup is complete slicer.app.connect("startupCompleted()", self.initializeAfterStartup) def initializeAfterStartup(self): - # print("initializeAfterStartup", slicer.app.commandOptions().noMainWindow) pass @@ -146,33 +137,33 @@ def registerSampleData(): # EISegMed3D1 SampleData.SampleDataLogic.registerCustomSampleDataSource( # Category and sample name displayed in Sample Data module - category="placePoint", - sampleName="placePoint1", + category="EISegMed3D", + sampleName="EISegMed3D", # Thumbnail should have size of approximately 260x280 pixels and stored in Resources/Icons folder. # It can be created by Screen Capture module, "Capture all views" option enabled, "Number of images" set to "Single". - thumbnailFileName=os.path.join(iconsPath, "placePoint1.png"), + thumbnailFileName=os.path.join(iconsPath, "EISegMed3D.png"), # Download URL and target file name uris="https://github.com/Slicer/SlicerTestingData/releases/download/SHA256/998cb522173839c78657f4bc0ea907cea09fd04e44601f17c82ea27927937b95", - fileNames="placePoint1.nrrd", + fileNames="EISegMed3D.nrrd", # Checksum to ensure file integrity. Can be computed by this command: # import hashlib; print(hashlib.sha256(open(filename, "rb").read()).hexdigest()) checksums="SHA256:998cb522173839c78657f4bc0ea907cea09fd04e44601f17c82ea27927937b95", # This node name will be used when the data set is loaded - nodeNames="placePoint1", + nodeNames="EISegMed3D", ) # EISegMed3D2 SampleData.SampleDataLogic.registerCustomSampleDataSource( # Category and sample name displayed in Sample Data module - category="placePoint", - sampleName="placePoint2", - thumbnailFileName=os.path.join(iconsPath, "placePoint2.png"), + category="EISegMed3D", + sampleName="EISegMed3D", + thumbnailFileName=os.path.join(iconsPath, "EISegMed3D.png"), # Download URL and target file name uris="https://github.com/Slicer/SlicerTestingData/releases/download/SHA256/1a64f3f422eb3d1c9b093d1a18da354b13bcf307907c66317e2463ee530b7a97", - fileNames="placePoint2.nrrd", + fileNames="EISegMed3D.nrrd", checksums="SHA256:1a64f3f422eb3d1c9b093d1a18da354b13bcf307907c66317e2463ee530b7a97", # This node name will be used when the data set is loaded - nodeNames="placePoint2", + nodeNames="EISegMed3D", ) @@ -617,13 +608,12 @@ def setDirty(*args): # 6. change button state self.togglePrevNextBtn(self._currScanIdx) - + layoutManager = slicer.app.layoutManager() for sliceViewName in layoutManager.sliceViewNames(): layoutManager.sliceWidget(sliceViewName).mrmlSliceNode().RotateToVolumePlane(self._currVolumeNode) slicer.util.resetSliceViews() - self.closePb() self._turninig = False diff --git a/EISegMed3D/Resources/UI/EISegMed3D.ui b/EISegMed3D/Resources/UI/EISegMed3D.ui index 0e86b6a..3ec9208 100644 --- a/EISegMed3D/Resources/UI/EISegMed3D.ui +++ b/EISegMed3D/Resources/UI/EISegMed3D.ui @@ -1,7 +1,7 @@ - placePoint - + EISegMed3D + true diff --git a/requirments.txt b/requirments.txt index f3e5771..bd1e557 100644 --- a/requirments.txt +++ b/requirments.txt @@ -1,2 +1 @@ -SimpleITK paddleseg