```{index} single: Filters; Compute Feature Phases Binary
```
# Compute Feature Phases Binary

## Group (Subgroup)

Generic (Misc)

## Description

This **Filter** assigns an **Ensemble** Id number to binary data. The *true* **Cells** will be **Ensemble** 1, and *false* **Cells** will be **Ensemble** 0. This **Filter** is generally useful when the **Cell Ensembles** were not known ahead of time. For example, if an image is segmented into precipitates and non-precipitates, this **Filter** will assign the precipitates to **Ensemble** 1, and the non-precipitates to **Ensemble** 0.


### Input Cell Data

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Cell Feature Ids | Array Selection | Allowed Types: int32 | Data Array that specifies to which Feature each Element belongs |

### Optional Data Mask

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Mask Array | Array Selection | Allowed Types: uint8, boolean Comp. Shape: 1 | Data Array that specifies if the Cell is to be counted in the algorithm |
| Cell Data Attribute Matrix | AttributeMatrixSelection |  | The Cell Data Attribute Matrix within the Image Geometry where the Binary Phases Array will be created |

### Output Cell Data

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Binary Feature Phases Array Name | DataObjectName |  | Created Data Array name to specify to which Ensemble each Feature belongs |

## Example Pipelines

## 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.
