From d263446d0e7774e20d13a6a00d14412854d76161 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 13 Sep 2010 09:42:25 +0000 Subject: [PATCH] small changed needed for allowing derivation of extended classes --- vcg/math/histogram.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/math/histogram.h b/vcg/math/histogram.h index 79fc110a..12ea4219 100644 --- a/vcg/math/histogram.h +++ b/vcg/math/histogram.h @@ -187,7 +187,7 @@ class Histogram { // public data members -private: +protected: std::vector H; //! Counters for bins. std::vector R; //! Range for bins. @@ -235,6 +235,7 @@ public: void Add(ScalarType v); int MaxCount() const; + int BinNum() const {return n;}; int BinCount(ScalarType v); int BinCountInd(int index) {return H[index];} int BinCount(ScalarType v, ScalarType width);