From 9b99d973ad54e21efffc72552c5b2981b2bf5d3b Mon Sep 17 00:00:00 2001 From: tomsmeding <tom.smeding@gmail.com> Date: Fri, 10 Mar 2017 21:36:20 +0100 Subject: Somewhat better interpolation curve --- roots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- cgit v1.2.3-70-g09d2