Key Facts
- Category
- Design
- Input Types
- file, number
- Output Type
- file
- Sample Coverage
- 4
- API Ready
- Yes
Overview
The Image Erode tool performs a morphological erosion operation to shrink foreground objects within binary images. By removing pixels from the boundaries of shapes, this utility helps isolate features, separate connected objects, or reduce noise in black-and-white image data.
When to Use
- •When you need to separate two objects that are touching or overlapping in a binary image.
- •When you want to remove small, unwanted noise or 'salt' pixels from a thresholded image.
- •When you need to reduce the size of foreground features to refine the precision of a shape or mask.
How It Works
- •Upload your binary (black and white) image file to the tool.
- •Set the number of iterations to define how aggressively the erosion should be applied.
- •Process the image to shrink the foreground objects based on your chosen settings.
- •Download the resulting image with the refined, reduced foreground shapes.
Use Cases
Examples
1. Separating Connected Text Characters
Data Entry Specialist- Background
- A scanned document resulted in a binary image where some characters were touching due to low resolution.
- Problem
- The OCR software could not distinguish between connected letters.
- How to Use
- Upload the scanned binary image and set iterations to 1 to slightly shrink the character strokes.
- Example Config
-
iterations: 1 - Outcome
- The characters are successfully separated, allowing the OCR software to read the text accurately.
2. Removing Noise from Binary Masks
Image Processing Researcher- Background
- A segmentation mask contained small, isolated white pixels (noise) that interfered with object detection.
- Problem
- The noise pixels were causing false positives in the detection algorithm.
- How to Use
- Upload the mask and apply 2 iterations of erosion to eliminate the small noise clusters.
- Example Config
-
iterations: 2 - Outcome
- The small noise pixels are completely removed, leaving only the primary objects in the mask.
Try with Samples
image, png, jpgRelated Hubs
FAQ
What is image erosion?
Erosion is a morphological operation that shrinks the white foreground areas of a binary image by removing pixels from their boundaries.
Does this tool work on color images?
It is designed for binary images. If you upload a color image, it may not produce the expected morphological results.
What do the iterations represent?
Iterations determine how many times the erosion process is repeated; higher values result in more significant shrinkage of the foreground objects.
What file formats are supported?
The tool supports common formats including JPEG, PNG, WebP, GIF, BMP, and TIFF.
Can I increase the size of objects instead?
No, this tool specifically performs erosion (shrinking). To increase object size, you would need a dilation tool.