HighMap library (C++)
Loading...
Searching...
No Matches
FFT vs. GPU Convolution and Morphological Expansion

This document records the experimental evaluation of 2D Fast Fourier Transform (FFT) algorithms as potential alternatives to spatial GPU implementations for convolution and morphological operations.

Related issue: #528.

1. Context and Motivation

Spatial filtering on large kernels can become computationally demanding with direct convolution, which scales with the kernel area $\mathcal{O}(K^2)$. In contrast, frequency-domain convolution via FFT operates in $\mathcal{O}(N \log N)$ independent of kernel radius:

$$f * g = \mathcal{F}^{-1}\mathcal{F}f