Ordinary morphological operations transform an image according to a structuring element. Morphological reconstruction adds another idea: a transformation evolves from a starting set, but a second image constrains where that evolution is allowed.
1. Why Reconstruction?
Ordinary dilation grows a set according to a structuring element. Ordinary erosion shrinks a set according to a structuring element.
Morphological reconstruction adds a second constraint: the transformation is not free to propagate everywhere.
Ordinary Morphology
The transformation is determined by the local morphological condition.
Morphological Reconstruction
A marker evolves only through locations permitted by a mask.
2. Marker and Mask
For reconstruction by dilation, let \(M\) be the marker and \(X\) be the mask. The marker must initially be contained in the mask:
Marker \(M\)
The marker contains the locations from which reconstruction begins.
Mask \(X\)
The mask defines the region through which the marker is allowed to propagate.
3. Geodesic Dilation
A single geodesic dilation first dilates the marker and then restricts the result to the mask:
4. Reconstruction by Dilation
A single geodesic dilation normally reaches only the immediate neighborhood of the current marker. The operation is therefore repeated.
The blue mask remains unchanged throughout the process. Only the current reconstruction expands.
At convergence, the marker has reached every location in the mask that is reachable from the initial marker under the chosen neighborhood.
5. Convergence
It is useful to describe reconstruction using a sequence of intermediate marker sets.
Every step can add only pixels belonging to \(X\). Because a digital image contains a finite number of pixels, the sequence eventually stops changing.
6. Connected-Component Extraction
Reconstruction provides a direct connection to connected components.
Suppose the mask is a binary set \(X\), and the marker contains only one foreground pixel \(p\in X\):
Then
reconstructs the portion of \(X\) that can be reached from \(p\) using the neighborhood chosen for geodesic propagation.
Choose a Seed
Place the marker inside the foreground component that you want to recover.
Propagate Inside \(X\)
Geodesic dilation can move only through locations allowed by the mask.
Recover the Component
Disconnected foreground components without a marker remain absent.
7. Opening by Reconstruction
Opening by reconstruction begins with erosion, but instead of using an ordinary dilation to rebuild the result, the eroded image becomes the marker.
The original image \(X\) becomes the mask:
8. Ordinary Opening vs. Opening by Reconstruction
Ordinary Opening
Erosion is followed by ordinary dilation.
The boundaries of structures that survive the erosion are rebuilt according to the structuring element.
Opening by Reconstruction
Erosion is followed by constrained propagation under the original image.
A surviving marker can recover the connected portion of the original structure allowed by the mask.
9. Geodesic Erosion
Reconstruction also has a dual form based on erosion.
For reconstruction by erosion, the mask \(X\) must initially be contained in the marker \(M\):
One geodesic erosion is
10. Reconstruction by Erosion
Geodesic erosion is repeatedly applied:
At convergence:
11. Closing by Reconstruction
Closing by reconstruction uses the dual construction.
First create a marker by dilation:
Then reconstruct the marker by erosion using \(X\) as the mask:
12. Hole Filling with Reconstruction
Reconstruction can also distinguish background connected to the image border from background enclosed inside an object.
Let \(\Omega\) be the finite image domain. Use the background image \(X^c\) as the mask and create a marker containing only background pixels on the border:
Reconstruct the border-connected background:
Background holes are not connected to the border marker, so they are absent from \(R\). Complementing the result fills those holes:
Mark Border Background
Marker pixels are placed only in background regions touching the image border.
Reconstruct Background
Reconstruction propagates through all background that is connected to those marker pixels.
Complement
Enclosed background regions become foreground, filling the holes.
13. What Does Reconstruction Preserve?
Reconstruction is strongly influenced by connectivity because propagation occurs from the marker through locations permitted by the mask.
| Question | Reconstruction Behavior |
|---|---|
| Can propagation leave the mask? | No. Every geodesic dilation step is restricted to the mask. |
| Can an unmarked disconnected component appear? | No. A component must be reachable from a marker under the chosen connectivity. |
| Does 4- vs. 8-connectivity matter? | Yes. The chosen neighborhood determines which mask pixels are reachable from the marker. |
| Does opening by reconstruction behave like ordinary opening? | Not exactly. Ordinary opening rebuilds the eroded set using ordinary dilation, while reconstruction allows surviving markers to propagate through the original mask. |
| Can reconstruction create arbitrary new structures? | No. The mask constrains the locations available to the reconstruction. |
14. Interactive Reconstruction Explorer
The visualizer below focuses on the reconstruction process rather than repeating the moving-structuring-element demonstration used on the earlier morphology page.
Geodesic Reconstruction
Edit the mask \(X\) and marker \(M\) directly.
Choose reconstruction by dilation or erosion and use Step, Auto, or Finish to watch the current reconstruction evolve until convergence.
You can also compare 4- and 8-connectivity.
Opening / Closing by Reconstruction
Edit the original binary image \(X\).
The tool automatically constructs the marker and compares ordinary opening or closing with the reconstruction-based version.
15. Summary
| Concept | Definition |
|---|---|
| Marker | \(M\): starting set from which reconstruction begins. |
| Mask | \(X\): set that constrains the reconstruction. |
| Geodesic Dilation | \( \delta_X^{(1)}(M) = (M\oplus B)\cap X \) |
| Reconstruction by Dilation | Repeat geodesic dilation until the marker stops changing. |
| Opening by Reconstruction | \( \gamma_R(X) = R_X^\delta(X\ominus B) \) |
| Geodesic Erosion | \( \varepsilon_X^{(1)}(M) = (M\ominus B)\cup X \) |
| Reconstruction by Erosion | Repeat geodesic erosion until the marker stops changing. |
| Closing by Reconstruction | \( \phi_R(X) = R_X^\varepsilon(X\oplus B) \) |
| Component Extraction | A marker seed reconstructs the portion of the mask reachable from that seed. |
| Hole Filling | Reconstruct border-connected background and complement the result. |
Be First to Comment