ProcessFileTask: allow setting variance and mask

The variance is set by a gain/noise approach, and the
mask is set by high and low thresholds.