code stringlengths 3 6.57k |
|---|
logging.debug("RAS: {}; WORLD: {}; IJK: {}".format(coord, world, p_Ijk) |
point_set.append(p_Ijk[0:3]) |
logging.info("{} => Current Fiducials-Points: {}".format(name, point_set) |
getFiducialPointXYZ(self, fiducialNode, index) |
vtk.vtkMatrix4x4() |
v.GetRASToIJKMatrix(RasToIjkMatrix) |
fiducialNode.GetNthFiducialPosition(index, coord) |
fiducialNode.GetNthFiducialWorldCoordinates(index, world) |
RasToIjkMatrix.MultiplyDoublePoint(p_Ras) |
round(i) |
logging.debug("RAS: {}; WORLD: {}; IJK: {}".format(coord, world, p_Ijk) |
onEditFiducialPoints(self, fiducialNode, tagName) |
fiducialNode.RemoveAllMarkups() |
self.currentSegment() |
vtk.vtkMatrix4x4() |
v.GetIJKToRASMatrix(IjkToRasMatrix) |
vtk.mutable("") |
segment.GetTag(tagName, fPosStr) |
str(fPosStr) |
logging.debug("{} => {} Fiducial points are: {}".format(segmentId, segment.GetName() |
len(pointset) |
json.loads(pointset) |
IjkToRasMatrix.MultiplyDoublePoint(p_Ijk) |
logging.debug("Add Fiducial: {} => {}".format(p_Ijk, p_Ras) |
fiducialNode.AddFiducialFromArray(p_Ras[0:3]) |
currentSegment(self) |
self._segmentNode.GetSegmentation() |
segmentation.GetSegmentIdBySegmentName(self.ui.labelComboBox.currentText) |
segmentation.GetSegment(segmentId) |
logging.debug("Current SegmentID: {}; Segment: {}".format(segmentId, segment) |
onSelectLabel(self, caller=None, event=None) |
self.updateParameterNodeFromGUI(caller, event) |
self.onEditFiducialPoints(self.dgPositiveFiducialNode, "MONAILabel.ForegroundPoints") |
self.onEditFiducialPoints(self.dgNegativeFiducialNode, "MONAILabel.BackgroundPoints") |
icon(self, name="MONAILabel.png") |
os.path.join(os.path.dirname(__file__) |
os.path.exists(iconPath) |
qt.QIcon(iconPath) |
qt.QIcon() |
updateServerSettings(self) |
self.logic.setServer(self.serverUrl() |
self.logic.setClientId(slicer.util.settingsValue("MONAILabel/clientId", "user-xyz") |
self.saveServerUrl() |
serverUrl(self) |
serverUrl.rstrip("/") |
saveServerUrl(self) |
self.updateParameterNodeFromGUI() |
qt.QSettings() |
settings.setValue("MONAILabel/serverUrl", serverUrl) |
settings.value("MONAILabel/serverUrlHistory") |
serverUrlHistory.split(";") |
serverUrlHistory.remove(serverUrl) |
serverUrlHistory.insert(0, serverUrl) |
settings.setValue("MONAILabel/serverUrlHistory", ";".join(serverUrlHistory) |
self.updateServerUrlGUIFromSettings() |
onClickFetchInfo(self) |
self.fetchInfo() |
self.updateConfigTable() |
fetchInfo(self, showInfo=False) |
time.time() |
self.updateServerSettings() |
self.logic.info() |
self.info.get("config") |
traceback.format_exc() |
traceback.format_exc() |
self.models.clear() |
info.get("config", {}) |
info.get("models", {}) |
models.items() |
v.get("type", "segmentation") |
model_count.get(model_type, 0) |
logging.debug("{} = {}".format(k, model_type) |
self.updateGUIFromParameterNode() |
str(len(models) |
model_count.keys() |
model_type.capitalize() |
str(model_count[model_type]) |
qt.QMessageBox.information(slicer.util.mainWindow() |
logging.info(msg) |
logging.info("Time consumed by fetch info: {0:3.1f}".format(time.time() |
setProgressBarLabelText(self, label) |
slicer.util.createProgressDialog(windowTitle="Wait...", maximum=100) |
reportProgress(self, progressPercentage) |
slicer.util.createProgressDialog(windowTitle="Wait...", maximum=100) |
self.progressBar.show() |
self.progressBar.activateWindow() |
self.progressBar.setValue(progressPercentage) |
slicer.app.processEvents() |
onTraining(self) |
time.time() |
qt.QApplication.setOverrideCursor(qt.Qt.WaitCursor) |
self.updateServerSettings() |
self.getParamsFromConfig("train", model) |
self.logic.train_start(model, params) |
self.ui.trainingProgressBar.setValue(1) |
self.ui.trainingProgressBar.setToolTip("Training: STARTED") |
time.sleep(1) |
self.updateGUIFromParameterNode() |
traceback.format_exc() |
qt.QApplication.restoreOverrideCursor() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.