A Survey of Gaussian Convolution Algorithms
gaussian_conv_vyv.h
Go to the documentation of this file.
1 
58 #ifndef _GAUSSIAN_CONV_VYV_H_
59 #define _GAUSSIAN_CONV_VYV_H_
60 
61 #include "num.h"
62 
64 #define VYV_MIN_K 3
65 
66 #define VYV_MAX_K 5
67 
68 #define VYV_VALID_K(K) (VYV_MIN_K <= (K) && (K) <= VYV_MAX_K)
69 
81 typedef struct vyv_coeffs_
82 {
86  num tol;
87  int K;
88  long max_iter;
89 } vyv_coeffs;
90 
91 void vyv_precomp(vyv_coeffs *c, double sigma, int K, num tol);
93  num *dest, const num *src, long N, long stride);
94 void vyv_gaussian_conv_image(vyv_coeffs c, num *dest, const num *src,
95  int width, int height, int num_channels);
96 
98 #endif /* _GAUSSIAN_CONV_VYV_H_ */