Debian Codegraph @

cvd_src/noarch/convolve_gaussian.cc

raw symbols SCIP
1 #include <cvd/convolution.h>
2 using namespace std;
3
4 namespace CVD
5 {
6
7 // Try to choose the fastest method
8 void convolveGaussian(const BasicImage<float>& I, BasicImage<float>& out, double sigma, double sigmas)
9 {
10 int ksize = (int)ceil(sigma * sigmas);
11 if(ksize > 6)
12 {
13 double b[3];
14 compute_van_vliet_b(sigma, b);
15 van_vliet_blur(b, I, out);
16 }
17 else
18 convolveGaussian<float>(I, out, sigma, sigmas);
19 }
20
21 void convolveGaussian_fir(const BasicImage<float>& I, BasicImage<float>& out, double sigma, double sigmas)
22 {
23 convolveGaussian<float>(I, out, sigma, sigmas);
24 }
25 }