10.128. Remove/Extract Flagged Features

Group (Subgroup)

Processing (Cleanup)

Description

This Filter removes or extracts Features that have been flagged by an earlier filter in the pipeline. The user supplies a boolean array at the Feature level; features with a value of false are targeted for removal (or extraction). Removed features leave gaps in the cell-level Feature Ids array, which are then filled by isotropic coarsening – neighboring features grow outward uniformly until every cell is reassigned to a surviving feature.

This filter is the general-purpose tool for discarding features based on any criterion you can express as a boolean flag (biased features, minority phases, user-selected grains, etc.). For the specific case of removing features smaller than a size threshold, see Remove Minimum Size Features instead.

Selected Operation

The Selected Operation parameter provides the following choices:

  • Remove [0]: Remove the flagged Features from the geometry. Neighboring features grow outward isotropically to fill the gaps.

  • Extract [1]: Copy the flagged Features into a new separate geometry without modifying the original.

  • Extract then Remove [2]: Copy the flagged Features into a new geometry and then remove them from the original (combining the previous two modes).

WARNING: NeighborList Removal

When the operation is Remove or Extract then Remove, any NeighborList arrays in the Cell Feature Attribute Matrix will be removed because the neighbor relationships have changed. Re-run Compute Feature Neighbors afterward to rebuild them.

Caveats

This filter will only run on an Image Geometry.

Required Input Sources

Input Parameter(s)

Parameter Name

Parameter Type

Parameter Notes

Description

Selected Operation

Choices

Whether to [0] remove features, [1] extract features into new geometry or [2] extract and then remove

Fill-in Removed Features

Bool

Whether or not to fill in the gaps left by the removed Features

Geometry

Parameter Name

Parameter Type

Parameter Notes

Description

Selected Image Geometry

Geometry Selection

Image

The target geometry

Input Cell Data

Parameter Name

Parameter Type

Parameter Notes

Description

Cell Feature Ids

Array Selection

Allowed Types: int32 Comp. Shape: 1

Specifies to which feature each cell belongs.

Created Image Geometry Prefix

String

The prefix name for each of new cropped (extracted) geometry

NOTE: a ‘-’ will automatically be added between the prefix and number |

Input Feature Data

Parameter Name

Parameter Type

Parameter Notes

Description

Flagged Features

Array Selection

Allowed Types: uint8, boolean Comp. Shape: 1

Specifies whether the Feature will remain in the structure or not

Attribute Arrays to Ignore

MultiArraySelection

The list of arrays to ignore when removing flagged features

Example Pipelines

DREAM3D-NX Help

If you need help, need to file a bug report or want to request a new feature, please head over to the DREAM3DNX-Issues GitHub site where the community of DREAM3D-NX users can help answer your questions.