```{index} single: Filters; Compute Feature Sizes
```
# Compute Feature Sizes

## Group (Subgroup)

Statistics (Morphological)

## Description

This **Filter** calculates the sizes of all **Features**.  The **Filter** simply iterates through all **Elements** querying for the **Feature** that owns them and keeping a tally for each **Feature**.  The tally is then stored as *NumElements* and the *Volume* and *EquivalentDiameter* are also calculated (and stored) by knowing the volume of each **Element**.

During the computation of the **Feature** sizes, the size of each individual **Element** is computed and stored in the corresponding **Geometry**. By default, these sizes are deleted after executing the **Filter** to save memory. If you wish to store the **Element** sizes, select the *Generate Missing Element Sizes* option. The sizes will be stored within the **Geometry** definition itself, not as a separate **Attribute Array**.


### Input Parameter(s)

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Generate Missing Element Sizes | Bool |  | If checked this will generate and store the element sizes ONLY if the geometry does not already contain them. |

### Input Cell Data

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Input Image Geometry | Geometry Selection | Image | DataPath to input Image Geometry |
| Cell Feature Ids | Array Selection | Allowed Types: int32 Comp. Shape: 1 | Specifies to which feature each cell belongs. |

### Input Feature Data

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Feature Attribute Matrix | AttributeMatrixSelection |  | Feature Attribute Matrix of the selected Feature Ids |

### Output Feature Data

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Equivalent Diameters | DataObjectName |  | DataPath to equivalent diameters array |
| Number of Elements | DataObjectName |  | DataPath to Num Elements array |
| Volumes | DataObjectName |  | DataPath to volumes array |

## Example Pipelines

+ (01) SmallIN100 Morphological Statistics
+ (10) SmallIN100 Full Reconstruction
+ InsertTransformationPhase
+ (06) SmallIN100 Postsegmentation Processing
+ (06) SmallIN100 Synthetic
+ (09) Image Segmentation

## License & Copyright

Please see the description file distributed with this **Plugin**

## 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](https://github.com/BlueQuartzSoftware/DREAM3DNX-Issues/discussions) GitHub site where the community of DREAM3D-NX users can help answer your questions.
