// Scale to input range
if(!EQUIV(config.high_input[mode], config.low_input[mode]))
{
- output = (input - config.low_input[mode]) /
+ output = input < config.low_input[mode] ? 0 :
+ (input - config.low_input[mode]) /
(config.high_input[mode] - config.low_input[mode]);
}
else
if( cpus > smps ) cpus = smps;
engine = new HistogramEngine(this, cpus, cpus);
}
-// Always plot to set the curves if automatic
- if(config.plot || config.automatic) send_render_gui(frame);
+// if to plot histogram
+ if(config.plot) send_render_gui(frame);
// Generate tables here. The same table is used by many packages to render
// each horizontal stripe. Need to cover the entire output range in each