diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-10 21:36:20 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-10 21:36:20 +0100 |
commit | 9b99d973ad54e21efffc72552c5b2981b2bf5d3b (patch) | |
tree | b316ee541398dffb743c4f387c1951522ca025ca | |
parent | 1c9f1a37dfe282fe6e08f22f33e9b690bdd29963 (diff) |
Somewhat better interpolation curve
-rw-r--r-- | roots.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; } |