HighMap library (C++)
Loading...
Searching...
No Matches
convolve.hpp File Reference

Provides functions for convolution operations on arrays. More...

Go to the source code of this file.

Namespaces

namespace  hmap
 

Functions

Array hmap::convolve1d_i (const Array &array, const std::vector< float > &kernel)
 Return the convolution product of the array with a 1D kernel along the 'i' direction.
 
Array hmap::convolve1d_j (const Array &array, const std::vector< float > &kernel)
 Return the convolution product of the array with a 1D kernel along the 'j' direction.
 
Array hmap::convolve2d (const Array &array, const Array &kernel)
 Return the convolution product of the array with a given 2D kernel.
 
Array hmap::convolve2d_truncated (const Array &array, const Array &kernel)
 Return the convolution product of the array with a given 2D kernel, with a truncated output size.
 
Array hmap::convolve2d_svd (const Array &z, const Array &kernel, int rank=3)
 Return the approximate convolution product of the array with a Singular Value Decomposition (SVD) of a kernel.
 
Array hmap::convolve2d_svd_rotated_kernel (const Array &z, const Array &kernel, int rank=3, int n_rotations=6, uint seed=1)
 Return the approximate convolution product of the array with a Singular Value Decomposition (SVD) of a kernel combined with kernel rotations.
 

Detailed Description

Provides functions for convolution operations on arrays.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)

This header file defines functions for performing convolution operations on 1D and 2D arrays using various kernels. The operations include 1D convolutions along different directions, 2D convolutions with symmetry boundary conditions, truncated 2D convolutions, and approximate convolutions using Singular Value Decomposition (SVD).