Here is an idea to consider:
Scale is often zero on my high rejection maps (
MAD == 0,
Sn == 0) with zero and one pixels ignored. The STF in 1054 sets MTF
shadows ==
median and
midtones == 0. This gives a very contrasty result and also does not satisfy the STF
target background specification.
With no information on scale, the two parameter system is underdetermined, and so a choice must be made. How to choose?
How about the least contrasty solution that satisfies the
target background specification?
Least contrasty implies
shadows == 0.
Target background satisfaction implies solving the system
targetBackground = (
midtones - 1) *
median / ((2 *
midtones - 1) *
median -
midtones)
for
midtones. This follows from the HistogramTranformation process
midtones transfer function (MTF) definition. An algebraic solution is easy.
This gives a much better presentation on my high rejections maps.
Pixels whose stacks in the integration had only one rejection are dimmest. Pixels with more rejections are brighter. This is a better default STF IMO.
Here is an example.
https://dl.dropboxusercontent.com/u/109232477/PixInsight/DegenerateSTF.zipInput
median == 0.0357143. Requirement
target background == 0.25. Solution
shadows == 0,
midtones == 0.1. Output
median == 0.25.
Thanks,
Mike
Comment: I have a custom integration process that generates a pair of rejection maps for each subframe. All pixels in these maps are either zero or one. The Statistics process of course reports Count == 0 and the same for the other values. I think in this case STF should do nothing and just use its
Reset values.