CompareSegmentations_09e9ed76990111e9adec0c9d9276653a¶
Plugin for comparision of StructuredGrids -ROI, MultiROI, Channel
| 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 27 2019 13:28 |
| dragonflyVersion: | |
| 4.1.0.11300 | |
| UUID: | 09e9ed76990111e9adec0c9d9276653a |
Class Code¶
-
class
OrsPythonPlugins.CompareSegmentations_09e9ed76990111e9adec0c9d9276653a.CompareSegmentations_09e9ed76990111e9adec0c9d9276653a.CompareSegmentations_09e9ed76990111e9adec0c9d9276653a(varname=None)¶ -
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
compare()¶
-
interfacemethod
compareWithGroundTruth(goldStandardStructuredGrid: ORSModel.ors.StructuredGrid, aStructuredGridtoCompare: ORSModel.ors.StructuredGrid, mask: ORSModel.ors.ROI, metrics: list = None, epsilon: float = 1e-10, progress: ORSModel.ors.Progress = None) → list¶ Nd Compares the ground truth (gold standard) and the test Calculating various statistical measures. Return a list of dict (one global dict plus one dict by label for ROI/MultiROI)
Parameters: - goldStandardStructuredGrid (ORSModel.ors.StructuredGrid) – gold standard StructuredGrid
- aStructuredGridtoCompare (ORSModel.ors.StructuredGrid) – StructuredGrid to compare with the gold standard
- mask (ORSModel.ors.ROI) – a mask to reduce the region of interest
- metrics (str) [count=[0, None]] –
- epsilon (float) –
- progress (ORSModel.ors.Progress) –
Returns: res (dict) [count=[0, None]] – listOfMetricsDict
-
classmethod
compareWithParameters(goldStandardStructuredGrid: ORSModel.ors.StructuredGrid, aStructuredGridtoCompare: ORSModel.ors.StructuredGrid, mask: ORSModel.ors.ROI, metrics: list = None, progress: ORSModel.ors.Progress = None)¶
-
interfacemethod
compareWithoutGroundTruth(aStructuredGridtoEvaluate: ORSModel.ors.StructuredGrid, mask: ORSModel.ors.ROI, metrics: list = None, progress: ORSModel.ors.Progress = None) → list¶ Evaluate the image quality for aStructuredGridToCompare. Calculating various statistical measures. Return a list of dict.
Parameters: - aStructuredGridtoEvaluate (ORSModel.ors.StructuredGrid) – StructuredGrid to evaluate
- mask (ORSModel.ors.ROI) – a mask to reduce the region of interest
- metrics (str) [count=[0, None]] –
- progress (ORSModel.ors.Progress) –
Returns: res (dict) [count=[0, None]] – listOfMetricsDict
-
classmethod
compute_confusion_matrix_with_mask(ground_truth_arr, prediction_arr, labels, mask_value, patch_size=256)¶
-
classmethod
contextualMenu(context)¶
-
getIsUsingGroundTruth() → bool¶
-
getIsValidParameters()¶
-
classmethod
getMainFormClass()¶ Gets the class of the main form
Returns: output –
-
getManagedClass()¶
-
getMask() → ORSModel.ors.ROI¶
-
getMetricClassList()¶
-
classmethod
getMetricClassListWithManagedClass(managedClass, withGroundTruth=True)¶
-
getMetricList()¶
-
classmethod
getMetricListWithManagedClass(managedClass, withGroundTruth=True)¶
-
classmethod
getMetricTooltips()¶
-
getObjectToCompareGUIDList() → list¶
-
getSavedMetricList()¶
-
classmethod
getSavedMetricListWithManagedClass(managedClass, withGroundTruth=True)¶
-
getSelectedMetrics() → list¶
-
getShowGroundTruthCombobox()¶
-
getStructuredGridGroundTruth() → ORSModel.ors.StructuredGrid¶
-
getWriteToUserInfo() → bool¶
-
static
get_mask_value(goldStandardStructuredGrid: ORSModel.ors.StructuredGrid, aStructuredGridtoCompare: ORSModel.ors.StructuredGrid) → int¶
-
keepAlive= False¶
-
multiple= False¶
-
removeFromObjectToCompare(objectGUID: str)¶
-
savable= False¶
-
setManagedClass(managed_class)¶
-
setMask(mask: ORSModel.ors.ROI)¶
-
setObjectToCompareGUIDList(objectToCompareGUIDList: list)¶
-
static
setSavedMetricList(managedClass, metric_list, withGroundTruth=True)¶
-
setSelectedMetrics(selectedMetrics: list)¶
-
setShowGroundTruthCombobox(showGroundTruthCombobox)¶
-
setStructuredGridGroundTruth(structuredGridGroundTruth: ORSModel.ors.StructuredGrid)¶
-
setWriteToUserInfo(writeToUserInfo: bool)¶
-
classmethod
startFromContextualMenu(selectedGUID_01, selectedGUID_02)¶
-