OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918¶
| author: | ORSTeam |
|---|---|
| contact: | http://theobjects.com |
| email: | info@theobjects.com |
| organization: | Object Research Systems (ORS), Inc. |
| address: | 460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7 |
| copyright: | Object Research Systems (ORS), Inc. All rights reserved 2018. |
| date: | Jun 20 2019 21:48 |
| dragonflyVersion: | |
| 4.1.0.643 (D) | |
| UUID: | 9d380f1a93c611e9ac0ec86000a21918 |
Class Code¶
-
class
OrsPythonPlugins.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918(varname=None)¶ -
CONTEXT_OBJECT_SOURCE_DATASET= 'SourceDataset'¶
-
FACTOR= 16¶
-
OrsHandleSegmentationFrameEditActivation()¶
-
OrsStateSegmentationFrameEdit= 'OrsStateSegmentationFrameEdit'¶
-
OrsSwitchToNexImageModality()¶
-
OrsSwitchToNextSegmentationFrame()¶
-
OrsSwitchToPrevImageModality()¶
-
OrsSwitchToPrevSegmentationFrame()¶
-
PLUGIN_ORSBASICMANIPULATE= 'OrsBasicManipulate'¶
-
PLUGIN_ORSBUSYNESSMANAGER= 'OrsBusynessManager'¶
-
PLUGIN_ORSCLIPBOXMANIPULATOR= 'OrsClipBoxManipulator'¶
-
PLUGIN_ORSHIGHLIGHTMANAGER= 'OrsHighlightManager'¶
-
PLUGIN_ORSLEGENDMANIPULATOR= 'OrsLegendManipulator'¶
-
PLUGIN_ORSSTATESELECTOR= 'OrsStateSelector'¶
-
PLUGIN_ORSTEXTPRESENTERMANAGER= 'OrsTextPresenterManager'¶
-
PLUGIN_ORSVOLUMEROIPAINTER= 'OrsVolumeROIPainter'¶
-
PLUGIN_ORSVOLUMEROITOOLS= 'OrsVolumeROITools'¶
-
PLUGIN_ORSWINDOWLEVELING= 'OrsWindowLeveling'¶
-
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
applyInputUpdates(editActions)¶
-
canBeGenericallyOpened= False¶
-
canChangeLabelsCount()¶
-
canExportLabels()¶
-
can_predict() → bool¶
-
can_train() → bool¶
-
cleanup()¶ Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.
-
classmethod
contextualMenu(listSelectedObjectsRepr)¶
-
exportCurrentGroup(filePath)¶
-
interfacemethod
extractObjectFromContextGroup(aContextGroup, anObjectToExtract)¶ Extracts an object from a context group by making a copy.
Parameters: - aContextGroup (ORSModel.ors.Group) – a context group
- anObjectToExtract (ORSModel.ors.Managed) – an object to extract
Returns: extractedObject (ORSModel.ors.Managed) – extracted object
-
fillFrameFromPredictions(frameIDs: List[str], modelID=None)¶
-
generateStrategyModels(inTraining: bool)¶
-
getAllLabelsMultiROI()¶
-
getClassesCount()¶
-
classmethod
getContextName()¶
-
getCurrObjVisualVolume()¶
-
getCurrentFrame() → OrsPythonPlugins.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918.segmentationframe.segmentationframe.SegmentationFrame¶
-
getCurrentModalityIdx()¶
-
getCurrentModelsCount()¶
-
getEditFrameState()¶
-
getIsObjectAvailable(anObject)¶ Gets to know if the object is available in the context.
Parameters: anObject (ORSModel.ors.Managed) – an object Return: Trueif the object is available in the context;Falseotherwise.Rtype: bool
-
classmethod
getMainFormClass()¶ Gets the class of the main form
Returns: output –
-
getMainView()¶
-
getModalityCount()¶
-
getModalityNames()¶
-
getModelDuplicatesEnabled()¶
-
getPredictionViewsCount()¶
-
getSelectedFrameIDs() → List[OrsPythonPlugins.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918.segmentationframe.segmentationframe.SegmentationFrame]¶
-
getSourceDataset(idx=0) → ORSModel.ors.Channel¶
-
getSourceDatasetsList() → List[ORSModel.ors.Channel]¶
-
getSourceGuidList() → List[str]¶
-
getStrategyManager()¶
-
getTitle()¶
-
getTotalFramesCount()¶
-
getTrainingDataset(progress)¶
-
getTrainingVoxelsCount()¶
-
getUseClassWeights()¶
-
classmethod
getWizardGroupInstances()¶
-
get_global_box()¶
-
get_selected_view_model_ID()¶
-
handleTriggered(eventdata)¶ This method is called on every user input (mouse move, mouse click, key press, …) when the current state of the application is one of those declared by the plugin. This method can be used to perform specific tasks even if no action is currently in progress.
Parameters: eventData (OrsEvent.eventdata.InputEventData) – the event data
-
hidePredictions()¶
-
iterFramePredictionsInViews(frameID)¶
-
iterPredictionsInViews(visibleOnly=True)¶
-
keepAlive= False¶
-
modalContext= True¶
-
multiple= True¶
-
nextFrame()¶
-
nextModality()¶
-
onImageModalityMoved(fromIdx, toIdx)¶
-
onImageModalityRenamed(idx, name)¶
-
on_frame_added(frameID)¶
-
on_frame_edited(frameID)¶
-
on_frames_removed(frameIDs)¶
-
on_labels_settings_updated()¶
-
on_model_renamed(model_id)¶
-
on_model_visibility_changed(modelID)¶
-
on_models_count_limit_changed(new_limit)¶
-
on_models_removed(modelIDs: List[str])¶
-
on_opacity_value_changed(opacity)¶
-
on_prediction_view_action(predictionView)¶
-
predict(modelID=None, frameIDs=None)¶
-
prevFrame()¶
-
prevModality()¶
-
privateObjects= True¶
-
refreshAllViews()¶
-
refreshModelsList()¶
-
removeModelPredictions(modelIDs: List[str])¶
-
resetHandler()¶
-
restrictPlugins= True¶
-
savable= True¶
-
save_to_group(aContextGroup)¶
-
setCurrentModalityIdx(idx)¶
-
setFramePredictionsVisibility(frameID, isVisible)¶
-
setFrameVisibilityForCurrentModality(frame, isVisible=True)¶
-
setModelCountLimit(limit)¶
-
setPredictionsViewLayout()¶
-
set_source_guid_list(guid_list)¶
-
setupContext(openMainForm=True)¶ Performs the tasks to setup the context. This is normally done after the instantiation of the main plugin in context and setting his state.
These are the usual tasks:
- instantiate all required plugins;
- define context restrictions (actions, states, …);
- open the main window with the mainform of the main plugin in context and all plugin forms
- (if
openMainFormisTrue);
- initialize the menu (if wanted);
- perform any other task to initialize the context (configure views, text presenters, …).
Parameters: openMainForm (bool) – Trueto use the forms;Falseotherwise.
-
showCurrentPredictions(reselect_model=False)¶
-
showModelPredictions(modelIDs)¶
-
classmethod
startupDefault(openMainForm=True)¶ Creates an instance of the plugin class and opens the main form (if required) at the default position.
Returns: output (AbstractPlugin) – plugin instance
-
classmethod
startupFromChannels(channelList, openMainForm=True)¶
-
classmethod
startupFromContextGroup(aContextGroup, openMainForm=True)¶
-
stateDescriptors= [<ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>]¶
-
classmethod
toolsMenu()¶
-
train(train_distributed: bool = False)¶
-
updateAllModelsClassesInfo()¶
-
updateCurrentModality(step)¶
-
updateFrameSelection(step)¶
-
updateFrameSelectionInUI(frameID, isSelected)¶
-
updateFramesSelectionInView(selectedFrameIds, unselectedFrameIds)¶
-
updateModelClassesInfo(model)¶
-
updatePredictionsViewLayout()¶
-
update_plugins_post_layout_change()¶
-