X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FHistogramToDensity.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FHistogramToDensity.h;h=2221b3904518d866ee82d8cb500f363441a292ea;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/HistogramToDensity.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/HistogramToDensity.h new file mode 100755 index 0000000..2221b39 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/HistogramToDensity.h @@ -0,0 +1,43 @@ +#ifndef HISTOGRAMTODENSITY_H_ +#define HISTOGRAMTODENSITY_H_ + +#include "Histogram.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH HistogramToDensity: public Histogram + { + public: + HistogramToDensity(Title title, Apparance apparance, shared_array tabvalues, int nbValue,Interval intervalX, int nbrSep, float maxDensityAnalytiqueY); + virtual ~HistogramToDensity(); + + void setMaxDensityAnalytiqueY(float maxDensityAnalytiqueY); + float getMaxDensityAnalytiqueY() const; + + /*--------------------------------------*\ + |* Surcharge *| + \*-------------------------------------*/ + + void setValue(shared_array tabvalues, int nbValue); + virtual Domaine computeDomaine(const Domaine& graphDomaine) const; + + private: + float computeFactor(); + void correctionDensity(); + private: + float factor; + float maxDensityAnalytiqueY; + float maxHistogram; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/