I want to Scale my Luminance color image matrix to fit my color ramp, I'm using sigmoidal function to scale up the my matrix but it seems there is problem calculation when ever i change my ramp scale min value to update the Image the sigmoidal output not gives correct value because of the fitting values to my latest Ramp scale range here is my sigmoid function for scaling my values to range of the ramp scale.
double Sigmoid(floot lum) { double average = (ramp_max + ramp_min)/2; double out= (lum - average) ; out= qExp(- out); out= 1 / (1 + out); return out; } please help me to solve the problem if Input Image like this 
If I change Scale 10 to 100 than expected output is like
but actual output i am getting is like 
没有评论:
发表评论