OrsProcessIslands_9ea2ae92d95911e89b0d448a5b5d70c0¶
Removes small or big objects from a ROI
| author: | ORS Team |
|---|---|
| contact: | http://theobjects.com |
| email: | info@theobjects.com |
| organization: | Object Research Systems (ORS), Inc. |
| address: | 760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4 |
| copyright: | Object Research Systems (ORS), Inc. All rights reserved 2018. |
| date: | Oct 26 2018 15:59 |
| dragonflyVersion: | |
| 4.0.0.542 (D) | |
| UUID: | 9ea2ae92d95911e89b0d448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsProcessIslands_9ea2ae92d95911e89b0d448a5b5d70c0.OrsProcessIslands_9ea2ae92d95911e89b0d448a5b5d70c0.OrsProcessIslands_9ea2ae92d95911e89b0d448a5b5d70c0(varname=None, managed=True)¶ -
closable= True¶
-
classmethod
contextualMenu(listSelectedObjectsRepr)¶ Contextual menu.
This code will be executed when a contextual menu has to be displayed.
The menu item instances used in this method should be taken from menu item definitions declared in this plugin and filled with proper values (section, action, enabled, …). If multiple menu items have to be used by this method, they should be defined using the same pattern.
Parameters: listSelectedObjectsRepr – list of selected objects (this argument is given as string representation) Returns: output – None, a single menu item instance, or a list of menu item instances
Declaration of a plugin menu item.
This method has to be decorated by “menuItem(menuItemDefinition=True)”.
Returns: output – Menu item instance
-
interfacemethod
isolateNBiggest(aROI, numberOfObject, as26Connected, aProgress=None)¶ Keeps only the N biggest objects of a ROI.
Parameters: - aROI (ORSModel.ors.ROI) – the ROI to modify
- numberOfObject (int) – number of objects to keep
- as26Connected (bool) – if True, the connectivity will be made using 26 neighbors; if False, the connectivity will be made using 6 neighbors.
- aProgress (ORSModel.ors.Progress) – progress object
-
classmethod
isolateNBiggestEntryPoint(aROI, as26Connected)¶
-
keepAlive= False¶
-
multiple= False¶
-
interfacemethod
processIslands(aROI, voxelCountThreshold, keepLargeObjects, as26Connected, aProgress=None)¶ Removes small or big objects of a ROI based on their voxel count.
Parameters: - aROI (ORSModel.ors.ROI) – the ROI to modify
- voxelCountThreshold (int) – voxel count threshold
- keepLargeObjects (bool) – if True, only the objects having a voxel count greater than or equal to the count threshold will be kept; if False, only the objects having a voxel count smaller than or equal to the count threshold will be kept.
- as26Connected (bool) – if True, the connectivity will be made using 26 neighbors; if False, the connectivity will be made using 6 neighbors.
- aProgress (ORSModel.ors.Progress) – progress object
-
classmethod
processIslandsWithVoxelCountThresholdSelector(aROI, keepLargeObjects, as26Connected)¶
-
interfacemethod
removeNBiggest(aROI, numberOfObject, as26Connected, aProgress=None)¶ Removes the N biggest objects of a ROI.
Parameters: - aROI (ORSModel.ors.ROI) – the ROI to modify
- numberOfObject (int) – number of objects to remove
- as26Connected (bool) – if True, the connectivity will be made using 26 neighbors; if False, the connectivity will be made using 6 neighbors.
- aProgress (ORSModel.ors.Progress) – progress object
-
classmethod
removeNBiggestEntryPoint(aROI, as26Connected)¶
-
savable= False¶
-