Smooth Object Boundaries in Binary Images
- Updated2025-09-11
- 1 minute(s) read
- Click Binary»Basic Morphology or select Basic Morphology in the Binary tab of the Processing Functions palette.
- Select a function from the Basic Morphology list. You can use one of three morphological functions to smooth the boundaries of objects:
- Proper Open — Smoothes boundaries of objects and fills small holes.
- Proper Close — Smoothes boundaries of objects and removes small particles.
- Auto Median — Smoothes boundaries of objects.
- Set the Size of the Structuring Element.
- Click the cells of the structuring element that you want to have a value of 0.
- Click OK to apply the smoothing function and add this step to the script.
Note The structuring element
is a 2D array used as a binary mask. You can modify the structuring element by
clicking its cells. If a cell is black, it has a value of 1. If a cell is white
(empty), it has a value of 0.
Tip Experiment with
different coefficients and the Kernel Size to get the results
you want.
Related Information
- Expand (Dilate) Objects in Binary Images
- Extract the Contours of a Particle
- Fill Gaps and Holes (Close) in Binary Images
- Fill Holes and Smooth Right Angles
- Reduce (Erode) Objects in Binary Images
- Remove Single Pixels and Right Angles
- Remove Small Objects (Open) from Binary Images
- Smooth Object Boundaries in Grayscale Images