code stringlengths 3 6.57k |
|---|
parent.registerProperty("MONAILabel/serverUrl", serverUrl, "text", str(qt.SIGNAL("textChanged(QString) |
qt.QLineEdit() |
groupLayout.addRow("Server address history:", serverUrlHistory) |
str(qt.SIGNAL("textChanged(QString) |
qt.QLineEdit() |
fileExtension.setText(".nii.gz") |
groupLayout.addRow("File Extension:", fileExtension) |
str(qt.SIGNAL("textChanged(QString) |
qt.QLineEdit() |
clientId.setText("user-xyz") |
groupLayout.addRow("Client/User-ID:", clientId) |
parent.registerProperty("MONAILabel/clientId", clientId, "text", str(qt.SIGNAL("textChanged(QString) |
qt.QCheckBox() |
groupLayout.addRow("Auto-Run Pre-Trained Model:", autoRunSegmentationCheckBox) |
ctk.ctkBooleanMapper(autoRunSegmentationCheckBox, "checked", str(qt.SIGNAL("toggled(bool) |
str(qt.SIGNAL("valueAsIntChanged(int) |
qt.QCheckBox() |
groupLayout.addRow("Auto-Fetch Next Sample:", autoFetchNextSampleCheckBox) |
ctk.ctkBooleanMapper(autoFetchNextSampleCheckBox, "checked", str(qt.SIGNAL("toggled(bool) |
str(qt.SIGNAL("valueAsIntChanged(int) |
qt.QCheckBox() |
groupLayout.addRow("Auto-Update Model:", autoUpdateModelCheckBox) |
ctk.ctkBooleanMapper(autoUpdateModelCheckBox, "checked", str(qt.SIGNAL("toggled(bool) |
str(qt.SIGNAL("valueAsIntChanged(int) |
qt.QCheckBox() |
groupLayout.addRow("Ask For User Name:", askForUserNameCheckBox) |
ctk.ctkBooleanMapper(askForUserNameCheckBox, "checked", str(qt.SIGNAL("toggled(bool) |
str(qt.SIGNAL("valueAsIntChanged(int) |
qt.QCheckBox() |
groupLayout.addRow("Allow Overlapping Segmentations:", allowOverlapCheckBox) |
ctk.ctkBooleanMapper(allowOverlapCheckBox, "checked", str(qt.SIGNAL("toggled(bool) |
str(qt.SIGNAL("valueAsIntChanged(int) |
allowOverlapCheckBox.connect("toggled(bool) |
qt.QCheckBox() |
groupLayout.addRow("Developer Mode:", developerModeCheckBox) |
ctk.ctkBooleanMapper(developerModeCheckBox, "checked", str(qt.SIGNAL("toggled(bool) |
str(qt.SIGNAL("valueAsIntChanged(int) |
vBoxLayout.addWidget(groupBox) |
vBoxLayout.addStretch(1) |
onUpdateAllowOverlap(self) |
slicer.util.settingsValue("MONAILabel/allowOverlappingSegments", True, converter=slicer.util.toBool) |
slicer.util.settingsValue("MONAILabel/fileExtension", None) |
MONAILabelSettingsPanel(ctk.ctkSettingsPanel) |
__init__(self, *args, **kwargs) |
ctk.ctkSettingsPanel.__init__(self, *args, **kwargs) |
_ui_MONAILabelSettingsPanel(self) |
MONAILabelWidget(ScriptedLoadableModuleWidget, VTKObservationMixin) |
__init__(self, parent=None) |
ScriptedLoadableModuleWidget.__init__(self, parent) |
VTKObservationMixin.__init__(self) |
OrderedDict() |
OrderedDict() |
OrderedDict() |
setup(self) |
ScriptedLoadableModuleWidget.setup(self) |
file (created by Qt Designer) |
slicer.util.loadUI(self.resourcePath("UI/MONAILabel.ui") |
self.layout.addWidget(uiWidget) |
slicer.util.childWidgetVariables(uiWidget) |
mrmlSceneChanged(vtkMRMLScene*) |
setMRMLScene(vtkMRMLScene*) |
uiWidget.setMRMLScene(slicer.mrmlScene) |
self.addObserver(slicer.mrmlScene, slicer.mrmlScene.StartCloseEvent, self.onSceneStartClose) |
self.addObserver(slicer.mrmlScene, slicer.mrmlScene.EndCloseEvent, self.onSceneEndClose) |
self.addObserver(slicer.mrmlScene, slicer.mrmlScene.NodeAddedEvent, self.onSceneEndImport) |
slicer.util.tempDirectory("slicer-monai-label") |
MONAILabelLogic(self.tmpdir) |
self.ui.serverComboBox.lineEdit() |
setPlaceholderText("enter server address or leave empty to use default") |
self.ui.fetchServerInfoButton.setIcon(self.icon("refresh-icon.png") |
self.ui.segmentationButton.setIcon(self.icon("segment.png") |
self.ui.nextSampleButton.setIcon(self.icon("segment.png") |
self.ui.saveLabelButton.setIcon(self.icon("save.png") |
self.ui.trainingButton.setIcon(self.icon("training.png") |
self.ui.stopTrainingButton.setIcon(self.icon("stop.png") |
self.ui.uploadImageButton.setIcon(self.icon("upload.svg") |
self.ui.importLabelButton.setIcon(self.icon("download.png") |
self.ui.dgPositiveFiducialPlacementWidget.setMRMLScene(slicer.mrmlScene) |
self.ui.dgPositiveFiducialPlacementWidget.placeButton() |
self.ui.dgPositiveFiducialPlacementWidget.placeButton() |
show() |
self.ui.dgPositiveFiducialPlacementWidget.deleteButton() |
show() |
self.ui.dgNegativeFiducialPlacementWidget.setMRMLScene(slicer.mrmlScene) |
self.ui.dgNegativeFiducialPlacementWidget.placeButton() |
self.ui.dgNegativeFiducialPlacementWidget.placeButton() |
show() |
self.ui.dgNegativeFiducialPlacementWidget.deleteButton() |
show() |
self.ui.dgUpdateButton.setIcon(self.icon("segment.png") |
self.ui.fetchServerInfoButton.connect("clicked(bool) |
self.ui.serverComboBox.connect("currentIndexChanged(int) |
self.ui.segmentationModelSelector.connect("currentIndexChanged(int) |
self.ui.segmentationButton.connect("clicked(bool) |
self.ui.deepgrowModelSelector.connect("currentIndexChanged(int) |
self.ui.nextSampleButton.connect("clicked(bool) |
self.ui.trainingButton.connect("clicked(bool) |
self.ui.stopTrainingButton.connect("clicked(bool) |
self.ui.saveLabelButton.connect("clicked(bool) |
self.ui.uploadImageButton.connect("clicked(bool) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.