A Survey of Gaussian Convolution Algorithms
gaussian_conv_sii.h
Go to the documentation of this file.
1 
62 #ifndef GAUSSIAN_CONV_SII_H
63 #define GAUSSIAN_CONV_SII_H
64 
65 #include "num.h"
66 
68 #define SII_MIN_K 3
69 
70 #define SII_MAX_K 5
71 
72 #define SII_VALID_K(K) (SII_MIN_K <= (K) && (K) <= SII_MAX_K)
73 
75 typedef struct sii_coeffs_
76 {
78  long radii[SII_MAX_K];
79  int K;
80 } sii_coeffs;
81 
82 void sii_precomp(sii_coeffs *c, double sigma, int K);
83 long sii_buffer_size(sii_coeffs c, long N);
84 void sii_gaussian_conv(sii_coeffs c, num *dest, num *buffer,
85  const num *src, long N, long stride);
86 void sii_gaussian_conv_image(sii_coeffs c, num *dest, num *buffer,
87  const num *src, int width, int height, int num_channels);
88 
90 #endif /* GAUSSIAN_CONV_SII_H */