aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-10 21:36:20 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-10 21:36:20 +0100
commit9b99d973ad54e21efffc72552c5b2981b2bf5d3b (patch)
treeb316ee541398dffb743c4f387c1951522ca025ca
parent1c9f1a37dfe282fe6e08f22f33e9b690bdd29963 (diff)
Somewhat better interpolation curve
-rw-r--r--roots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index 4187822..3de5d8c 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -345,7 +345,7 @@ void buildImage(unsigned char *image,const int *tally,int width,int height){
for(int i=0;i<width*height;i++){
// image[3*i+0]=interp((double)min(tally[i],capval)/capval,0.4)*255;
- image[3*i]=pow((double)cumul[tally[i]]/cumul[maxval],2)*255;
+ image[3*i]=pow((double)cumul[tally[i]]/cumul[maxval],3)*255;
image[3*i+1]=image[3*i+0];
image[3*i+2]=image[3*i+0];
}