Cool! It took me a few minutes to figure this out. Just a few notes to myself (and whoever else is watching):
My 50x50px selection was slightly different, because I'm using a slightly cropped version of the stack. Thus, my initial Statistics (under the "hamburger" menu > Image Information) are a tiny bit different. But very close.
I see how to add the extra "Parameters" well enough, but I did not immediately see that I actually needed to modify the "R", "G", and "B" fields at the top of the Pixel Math dialog. I misinterpreted the "-" sign there as a hyphen. It's actually a minus sign, right? So what goes there is, in effect, a mathematical expression.
And then finally, to see the new Statistics values (10.0, etc.), I figured out that I needed to click the "Execute" button in that dialog box.
In any case, I now seem to have a decent AutoStretch preview!
bg-extraction.jpg
I think I'm ready for what's next, Professor!
(And yes, the difficulty of selecting a "background" in such a tightly-fitting field through my 714mm FL scope is not a new idea to me. A conventional background extraction involved me selecting only a very small number of the darkest locations around the perimeter.)
Woohoo! Yes to all! These are indeed mathematical expressions. As you have already found, the image at this point is totally workable. Step 3 solves a problem fairly unique to DSLRs. The D50 multiplier for the red and blue white balance is 2.04 and 1.47, respectively. But any of those kRs and kBs over the peak green value wind up magenta because of this severe imbalance. The only way to fix it is to clip the reds and blues to the peak green level.
There is also noise that brings the minimum value below zero. This causes problems in several of my other workflows. But with the same expression, we can clip the minimum to 0.
So from your white-balanced, background-subtraced image, you want to export the channels to a new set of files, kR, kG, kB. You then reload those in Pixel math as kR, G, and kB. And then load the following channel expressions:
max(min(1,kR/max(G)),0)*max(G)
max(min(1,G/max(G)),0)*max(G)
max(min(1,kB/max(G)),0)*max(G)
These don't change the overall image, but the star cores are now clipped to white instead of magenta.
Lastly, we use the Histogram transformation to clip the blacks to the bare minimum for the image. Any bias results in a reduction in contrast and saturation, so we want it as low as possible. If we load the Histogram and click on the Autostretch button, we can see what the Shadows value is that puts the histogram as far to the left as possible.
Change the Midtones value back to 0.5 and click Apply.
So far, so good?