# Image Dilate

Apply dilation morphological operation to expand foreground objects in binary images

> Canonical page: https://elysiatools.com/en/tools/image-dilate

- **Category:** Design

- **Keywords:** image, dilate, morphology, binary, expand, dilation, morphological, filter

## Overview

The Image Dilate tool performs a morphological operation that expands foreground objects in binary images, making them thicker or more prominent by adding pixels to their boundaries.

## Inputs

- **Image File** (file): Works best with binary (black and white) images
- **Iterations** (number): Number of times to apply dilation. More iterations = more expansion

## When to use

- When you need to bridge small gaps or holes within binary shapes.
- When you want to increase the size of foreground features for better visibility.
- When preparing binary masks for further image processing or analysis.

## How it works

- Upload your binary image file (JPEG, PNG, WEBP, GIF, BMP, or TIFF).
- Set the number of iterations to define how much the foreground objects should expand.
- Process the image to apply the morphological dilation filter.
- Download the resulting image with the expanded foreground features.

## Use cases

- Repairing broken lines or fragmented shapes in scanned documents.
- Enhancing the visibility of thin features in medical or scientific imaging.
- Preparing binary masks for object detection or segmentation tasks.

## Frequently asked questions

### What is image dilation?

Dilation is a morphological operation that adds pixels to the boundaries of objects in an image, effectively expanding the foreground.

### What type of images work best?

This tool is designed for binary images (black and white), where the foreground is clearly distinguished from the background.

### What does the 'iterations' setting do?

The iterations setting determines how many times the dilation process is applied; higher values result in more significant expansion.

### Are there limits on the file size?

Yes, the maximum file size for uploads is 10 MB.

### Can I process multiple images at once?

No, this tool processes one image file at a time.

## Related tools

- [Image Gradient Overlay](https://elysiatools.com/en/tools/image-add-gradient): Add gradient overlay effects to images with customizable colors, directions, and blend modes
- [Image Masking Effect](https://elysiatools.com/en/tools/image-add-masking): Apply masking effects to images using shapes, gradients, or custom masks for creative compositions
- [Add Noise Effect](https://elysiatools.com/en/tools/image-add-noise): Add various types of noise effects to images with customizable intensity and parameters
- [Image Binary Converter](https://elysiatools.com/en/tools/image-binary): Convert images to binary (black and white) with customizable threshold and options
- [Image Blur](https://elysiatools.com/en/tools/image-blur): Add blur effects to images with adjustable blur strength and multiple blur types
- [Image Boolean AND](https://elysiatools.com/en/tools/image-boolean-and): Apply bitwise AND operation between two images to create intersection mask
- [Image Boolean NOT](https://elysiatools.com/en/tools/image-boolean-not): Apply bitwise NOT operation to invert all pixel values in an image
- [Image Boolean OR](https://elysiatools.com/en/tools/image-boolean-or): Apply bitwise OR operation between two images to create union mask

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Binary Image Thresholding, Morphology, and Mask Tools](https://elysiatools.com/en/hubs/binary-image-thresholding-and-morphology): Turn images into binary masks, compare threshold methods, repair foreground shapes, and combine masks with morphological and Boolean operations.
