Init locallabgtk3

This commit is contained in:
Desmis
2017-01-21 15:34:40 +01:00
parent 928c4c7d02
commit 273e1cb3b2
47 changed files with 18583 additions and 3345 deletions

View File

@@ -1141,7 +1141,6 @@ template<class T> void gaussVerticalmult (T** src, T** dst, const int W, const i
template<class T> void gaussianBlurImpl(T** src, T** dst, const int W, const int H, const double sigma, T *buffer = nullptr, eGaussType gausstype = GAUSS_STANDARD, T** buffer2 = nullptr)
{
static constexpr auto GAUSS_SKIP = 0.25;
static constexpr auto GAUSS_3X3_LIMIT = 0.6;
static constexpr auto GAUSS_DOUBLE = 70.0;
@@ -1189,6 +1188,9 @@ template<class T> void gaussianBlurImpl(T** src, T** dst, const int W, const int
} else {
if (sigma < GAUSS_SKIP) {
// don't perform filtering
#ifdef _OPENMP
#pragma omp single
#endif
if (src != dst) {
memcpy (dst[0], src[0], W * H * sizeof(T));
}