[Paper Review] Fast Implementation of Morphological Filtering Using ARM NEON Extension
This paper presents an optimized implementation of morphological erosion and dilation using ARM NEON SIMD instructions, leveraging separability and hybrid algorithms (van Herk/Gil-Werman for large windows, low-constant linear for small windows), along with fast 8x8 and 16x16 matrix transpositions. The approach achieves up to 12× speedup for 16x16 matrix transpose and 3× speedup for erosion/dilation compared to non-SIMD baseline implementations.
In this paper we consider speedup potential of morphological image filtering on ARM processors. Morphological operations are widely used in image analysis and recognition and their speedup in some cases can significantly reduce overall execution time of recognition. More specifically, we propose fast implementation of erosion and dilation using ARM SIMD extension NEON. These operations with the rectangular structuring element are separable. They were implemented using the advantages of separability as sequential horizontal and vertical passes. Each pass was implemented using van Herk/Gil-Werman algorithm for large windows and low-constant linear complexity algorithm for small windows. Final implementation was improved with SIMD and used a combination of these methods. We also considered fast transpose implementation of 8x8 and 16x16 matrices using ARM NEON to get additional computational gain for morphological operations. Experiments showed 3 times efficiency increase for final implementation of erosion and dilation compared to van Herk/Gil-Werman algorithm without SIMD, 5.7 times speedup for 8x8 matrix transpose and 12 times speedup for 16x16 matrix transpose compared to transpose without SIMD.
Motivation & Objective
- Address the performance bottleneck of morphological filtering in real-time image processing on ARM-based embedded systems.
- Reduce computational complexity of erosion and dilation operations for rectangular structuring elements on ARM processors.
- Leverage SIMD parallelism via ARM NEON to accelerate key image processing primitives like matrix transpose and morphological operations.
- Achieve high performance through algorithmic optimization combining separability, adaptive window handling, and data-level parallelism.
Proposed method
- Exploited separability of rectangular structuring elements by decomposing 2D morphological operations into sequential horizontal and vertical passes.
- Applied the van Herk/Gil-Werman algorithm for large window sizes to achieve O(n) linear complexity per pass.
- Used a low-constant linear complexity algorithm for small window sizes to minimize overhead and improve efficiency.
- Combined both algorithms dynamically based on window size to balance performance and accuracy.
- Implemented optimized 8x8 and 16x16 matrix transpose routines using ARM NEON intrinsics to accelerate data reorganization in separable filtering.
- Integrated SIMD vectorization across all stages to exploit data-level parallelism on ARM NEON units.
Experimental results
Research questions
- RQ1How can morphological filtering be accelerated on ARM processors using SIMD extensions?
- RQ2What is the performance gain of combining separable filtering with NEON-optimized kernels for erosion and dilation?
- RQ3How effective is the hybrid algorithm (van Herk/Gil-Werman + low-constant linear) in reducing computational cost across different window sizes?
- RQ4To what extent does NEON-optimized matrix transpose improve the performance of separable morphological operations?
- RQ5What is the overall speedup of the final implementation compared to a non-SIMD baseline?
Key findings
- The final implementation achieved a 3× speedup for erosion and dilation operations compared to the van Herk/Gil-Werman algorithm without SIMD optimization.
- A 5.7× speedup was observed for 8x8 matrix transpose when using NEON-optimized routines versus a non-SIMD implementation.
- A 12× speedup was achieved for 16x16 matrix transpose using the NEON-optimized transpose kernel.
- The combination of algorithmic optimization and SIMD parallelism significantly reduced execution time for morphological filtering on ARM processors.
- The hybrid approach effectively balanced performance across small and large window sizes, minimizing overhead while maximizing throughput.
- The results demonstrate that NEON-enabled implementations can deliver substantial performance gains in embedded computer vision workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.