```{index} single: Filters; Pad Image Geometry
```
# Pad Geometry (Image) #


## Group (Subgroup) ##

Generic (Generic)

## Description ##

This **Filter** pads an image geometry by the given min/max voxels for each dimension in X, Y, and Z, using the default padding value.
It is also possible to optionally update the origin of the image geometry, which prevents the original data from shifting in space.

For example given the original input geometry in Figure 1:

### Figure 1

![](Images/PadImageGeometry_0.png)


Padding the Image Geometry with X Min=0, X Max=10, Y Min=0, Y Max=10 will give the output as shown in Figure 2

### Figure 2

![](Images/PadImageGeometry_1.png)


### Input Parameter(s)

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Pad X Dimension | Bool |  | Enable padding in the X dimension. |
| Pad Y Dimension | Bool |  | Enable padding in the Y dimension. |
| Pad Z Dimension | Bool |  | Enable padding in the Z dimension. |
| X Min & Max Padding (in voxels) | Vector of Int32 Values | Order=X Min,X Max | The Min and Max padding for X Axis |
| Y Min & Max Padding (in voxels) | Vector of Int32 Values | Order=Y Min,Y Max | The Min and Max padding for Y Axis |
| Z Min & Max Padding (in voxels) | Vector of Int32 Values | Order=Z Min,Z Max | The Min and Max padding for Z Axis |
| Default Padding Value | Scalar Value |Int32 | The value to apply to the added elements in each of the cell data arrays |
| Update Origin | Bool |  | Should the origin of the Image Geometry be updated |
| Perform In Place | Bool |  | Removes the original Image Geometry after filter is completed |

### Input Image Geometry

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Image Geometry | Geometry Selection | Image | Select the Image Geometry Group from the DataStructure. |
| Cell Data | AttributeMatrixSelection |  | The Attribute Matrix that holds the cell data for the geometry |

### Output Image Geometry

| Parameter Name | Parameter Type | Parameter Notes | Description |
|----------------|----------------|-----------------|-------------|
| Created Image Geometry | DataGroupCreation |  | The DataPath to store the created Image Geometry |

## Example Pipelines ##

'pad_image_geometry.d3dpipline'

## License & Copyright ##

Please see the description file distributed with this plugin.

## DREAM3D Mailing Lists ##

If you need more help with a filter, please consider asking your question on the DREAM3D Users mailing list:
https://groups.google.com/forum/?hl=en#!forum/dream3d-users
