Fix Clang warnings plus some cleanups

This commit is contained in:
Flössie
2019-10-31 08:56:38 +01:00
parent 6935faa258
commit aacea7046c
19 changed files with 99 additions and 87 deletions

View File

@@ -29,15 +29,19 @@
* available at https://arxiv.org/abs/1505.00996
*/
#include "guidedfilter.h"
#include "boxblur.h"
#include "rescale.h"
#include "guidedfilter.h"
#include "imagefloat.h"
#include "rescale.h"
#define BENCHMARK
#include "StopWatch.h"
namespace rtengine {
namespace {
namespace rtengine
{
namespace
{
int calculate_subsampling(int w, int h, int r)
{
@@ -60,7 +64,6 @@ int calculate_subsampling(int w, int h, int r)
} // namespace
void guidedFilter(const array2D<float> &guide, const array2D<float> &src, array2D<float> &dst, int r, float epsilon, bool multithread, int subsampling)
{
enum Op {MUL, DIVEPSILON, SUBMUL};