OrsObjectAnalysis¶
Manages classification of objects in datasets
| author: | ORS Team |
|---|---|
| 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 2021. |
| date: | Jun 02 2015 16:25 |
| dragonflyVersion: | |
| 3.0 | |
| UUID: | 305293f4761711e78f91448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsObjectAnalysis.OrsObjectAnalysis.OrsObjectAnalysis(varname=None)¶ -
MULTIROI_USERINFO_KEY_DATADIRTYSIGNATUREATDUMPCLASSIFICATIONTREE= '_ORS_dataDirtySignatureAtDumpClassificationTree'¶
-
OrsStateObjectAnalysis= 'OrsStateObjectAnalysis'¶
-
OrsStateObjectAnalysisAdd= 'OrsStateObjectAnalysisAdd'¶
-
OrsStateObjectAnalysisAddActivation()¶
-
OrsStateObjectAnalysisRemove= 'OrsStateObjectAnalysisRemove'¶
-
OrsStateObjectAnalysisRemoveActivation()¶
-
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
canBeGenericallyOpened= False¶
-
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(context)¶
-
convertFormatedValueToDataValue(outputTag, formatedValue)¶
-
deleteFromROI(filterOnSelection=True)¶
-
dumpDataInLabeledMultiROI(ILMR, labelFilter=None, dumpClass=True)¶
-
exportToCSV(filename, filterOnSelection=True, fctToCallToObtainSortedArray=None)¶
-
exportToLabeledMultiROI(filterOnSelection=True)¶
-
exportToROI(filterOnSelection=True)¶
-
fitLabelToView(label)¶
-
formatUnitLabel(outputTag)¶
-
formatValueLabel(outputTag, value, precision)¶
-
getColorForClassId(classIdName)¶
-
getColorHistogramByLUT()¶
-
getComplementIntensity()¶
-
getCurrentLut()¶
-
getDataDimensionUnit(outputTag)¶
-
getDataDimensionUnitOfAttribute(attributeLabel)¶
-
getDataRangeBoundary(outputTag)¶
-
getDefaultDimensionUnit(outputTag)¶
-
getDefaultDimensionUnitOfAttribute(attributeLabel)¶
-
getDimensionUnitForSortLabel()¶
-
getDisplayStatAttribute()¶
-
getFormattingFunction(attributeLabel)¶
-
getInverseFormattingFunction(attributeLabel)¶
-
getIsCurrentLutDiscrete()¶
-
getIsCurrentlyDeletingFromROI()¶
-
getLabeledMultiROI()¶ Get the analyzed Labeled Multi ROI
Returns: labeled_multi_roi (ORSModel.ors.MultiROI) – the analyzed MultiROI
-
getLabeledMultiROIAnalyzedObjectCount(includeEmptyLabels=True)¶ Returns the count of labels in the LMR
Parameters: includeEmptyLabels – bool If True, the empty labels are included in the count. If False, only the non-empty labels are counted. Return: label count
-
getLutUUID()¶
-
classmethod
getMainFormClass()¶ Gets the class of the main form
Returns: output –
-
getSelectionIntensity()¶
-
getUnitAbbreviationFunction(attributeLabel)¶
-
get_stats_attribute_count()¶
-
handleChanged(oldState, newState)¶ This method is called when the state of the application is changed.
Parameters: - oldState (str) – name of the old (previous) state
- newState (str) – name of the new (current) state
-
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
-
keepAlive= False¶
-
labeledMultiROILabelChange(labelSelected, addAction, resetSelection, display, IWorldPosition)¶
-
lookAtROI(label)¶
-
multiple= False¶
-
onAttributeFilterSelectionChange(classId, classNameId, classNameUI, objectChildIndicies, statAttributeFilter, filter)¶
-
onCurrentDisplayChange()¶
-
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1, show=True)¶ Instantiates the widget with the provided name. This is done only if it is not already instantiated.
Parameters: - name (str) – name of the widget to instantiate
- dock (str) – docking location in the main window (left, right, top, bottom, center, floating)
- tab (str) – name of the tab to dock in
- x (int) – position of top left corner of window in x. Use -1 for default value.
- y (int) – position of top left corner of window in y. Use -1 for default value.
- w (int) – width of window. Use -1 for default value.
- l (int) – height of window. Use -1 for default value.
- order (int.) – position of widget in docking location. Use -1 to put at the end.
- show (bool) – if
True, the form is also shown after being instantiated. If the form already exists, a “raise” is done. IfFalse, no call to show the form is made.
-
refreshDiscreteLegendLabels(classNameId, classNameUI)¶
-
refreshFromChildIndex()¶
-
refreshFromStatisticalAttribute()¶
-
removalAllUserScalarSlots()¶ Removes all the scalar slots of the working MultiROI except those used by Object Analysis (the working scalar slots those used to display the current statistic)
-
savable= False¶
-
setColorForClassId(classIdName, color)¶
-
setColorHistogramByLUT(value)¶
-
setComplementIntensity(complementIntensity)¶
-
setCurrentChildIndicies(objectChildIndicies, refresh=True)¶
-
setCurrentClassNameId(classNameId, classNameUI, refresh=True)¶
-
setCurrentStatAttribute(statAttributeSortLabel, refresh=True)¶
-
setCurrentStatAttributeFilter(statAttributeFilter)¶
-
setCurrentStatAttributeSelection(statAttributeSelection, refresh=True)¶
-
setDisplayStatAttribute(displayStatAttribute)¶
-
setLabeledMultiROI(ILMR)¶
-
setLutUUID(lutUUID)¶
-
setNewListPythonScriptsGenerators(newListPythonScriptsGenerators, recomputeAll=False)¶
-
setSelectionIntensity(selectionIntensity)¶
-
static
startFromContextualMenu(selectedGUID, basicMode=False)¶
-
stateDescriptors= [<ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>]¶
-
updateDefaultDimensionUnit(outputTag, display)¶
-
updateLMRColorRamp()¶
-
updateLegendUnits()¶
-
updatePreferences()¶
-
updateSelectedLUT()¶
-
updateStatisticalDictionary()¶
-
updateUnits()¶
-