Expand and shrink objects
Expands or shrinks all objects in a specified object collection from the workspace.
Description
Expands or shrinks all objects in a specified object collection from the workspace. Expand and shrink operations can be performed in 2D or 3D. These are effectively binary dilate and erode operations, respectively. Input objects can be updated with the post-hole filling coordinates, or all output objects can be stored in the workspace as a new collection.
Note: MIA permits object overlap, so objects may share coordinates. This is important to consider if subsequently converting objects to an image, where it's not possible to represent both objects in shared pixels.
Parameters
Parameter | Description |
---|---|
Input objects | Object collection from the workspace to apply the expand or shrink operation to. |
Update input objects | When selected, the post-operation objects will update the input objects in the workspace (all measurements and relationships will be retained). Otherwise, the objects will be saved to the workspace in a new collection with the name specified by the "Output objects" parameter. Note: If updating the objects, any previously-measured object properties (e.g. object volume) may become invalid. To update such measurements it's necessary to re-run the relevant measurement modules. |
Output objects | If "Update input objects" is not selected, the post-operation objects will be saved to the workspace in a new collection with this name. |
Method | Controls which expand or shrink operation is applied to the input objects:
|
Radius change source | |
Radius change | Distance from the object boundary to test for potential inclusion or removal of coordinates. When expanding, any non-object coordinates within this distance of the object are included in the object. While shrinking, any object coordinates within this distance of the object boundary are removed from the object. This value is assumed specified in pixel coordinates unless "Calibrated units" is selected. |
Measurement | |
Calibrated units | When selected, "Radius change" is assumed to be specified in calibrated units (as defined by the "Input control" parameter "Spatial unit"). Otherwise, pixel units are assumed. |