From ffeb4b5fa130d99c25e591262baba853b3ba3712 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Mon, 19 Sep 2011 07:02:33 +0000 Subject: [PATCH] harmless clang warnings --- src/meshlabplugins/decorate_base/colorhistogram.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meshlabplugins/decorate_base/colorhistogram.h b/src/meshlabplugins/decorate_base/colorhistogram.h index 906bede03..2351b2aaa 100644 --- a/src/meshlabplugins/decorate_base/colorhistogram.h +++ b/src/meshlabplugins/decorate_base/colorhistogram.h @@ -25,9 +25,9 @@ public: * The statistics related to the histogram data (average, RMS, etc.) are * also updated. */ - void Add(ScalarType v,Color4b c,float increment); + void Add(ScalarType v,Color4b c,float increment=1.0); - Color4b BinColorAvg(ScalarType v) { return BinColorAvgInd(BinIndex(v)); } + Color4b BinColorAvg(ScalarType v) { return BinColorAvgInd(this->BinIndex(v)); } Color4b BinColorAvgInd(int index) { return Color4b( (unsigned char)((CV[index][0] / float(this->H[index]))), @@ -80,9 +80,9 @@ asking for 4 lower bound will return an iterator pointing to R[3]==4; and wil */ template -void ColorHistogram::Add(ScalarType v,Color4b c,float increment=1.0f) +void ColorHistogram::Add(ScalarType v,Color4b c,float increment/*=1.0f*/) { - int pos=BinIndex(v); + int pos=this->BinIndex(v); if(vminElem) this->minElem=v; if(v>this->maxElem) this->maxElem=v; if(pos>=0 && pos<=this->n)