SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
convolve_gaussian.cpp
Go to the documentation of this file.
1 #include "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  double b[3];
13  compute_van_vliet_b(sigma, b);
14  van_vliet_blur(b, I, out);
15  } else
16  convolveGaussian<float>(I, out, sigma, sigmas);
17  }
18 
19  void convolveGaussian_fir(const BasicImage<float>& I, BasicImage<float>& out, double sigma, double sigmas)
20  {
21  convolveGaussian<float>(I, out, sigma, sigmas);
22  }
23 }
void convolveGaussian_fir(const BasicImage< float > &I, BasicImage< float > &out, double sigma, double sigmas=3.0)
void convolveGaussian(BasicImage< T > &I, double sigma, double sigmas=3.0)
Definition: convolution.h:415
Definition: abs.h:24
void compute_van_vliet_b(double sigma, double b[])
void van_vliet_blur(const double b[], const CVD::SubImage< float > in, CVD::SubImage< float > out)