Michele Campini · Jan 5, 2026 at 10:33 PM
Can u explain in detail this step ? Thank u :)
And for confirmation, the strech after the LRGB right ?
Of course!
Of course! You extract the Luminance component of your RGB image by clicking on the corresponding button on the pixinsight default toolbar (near the top left). At this point you have an RGB_L layer along with your dedicated Luminance layer.
In principle, if you pick a specific pixel and check the luminance values of RGB_L and L, those will be different, because of factors such as different exposure time, differences in photon efficiency between the L/Clear filter and the R+G+B filter efficiency composition, and so on.
What we can expect from physics principles, however, is that a relation of linearity exists between the two images. Linear Fit leverages this linearity to measure a simple mapping function between RGB_L and L that can be applied to each pixel in our target (L) to make it match intensity levels of the reference. Once this is done, I think that the new, fitted L can replace the old luminance component in the RGB image safely, with no risk of clipping colours.
The reason why I think it’s important to either remove the stars from both layers before applying LF, or to be careful with the LF range sliders, is that saturated pixels (e.g stars) can throw off the fitting process, as it is effectively a breakdown of linearity: two stars that are not quite saturated in RGB, but well saturated in L, will have intensity values (RGB_L, L)→(0.85,1.0), (0.92,1.0), which breaks linearity.
To show this, I asked ChatGPT to simulate a toy model where a faint nebula and saturated stars co-exist. In this scatterplot, every point represents a pixel, with the x-value being the intensity in RGB_L, and the y-value the intensity in L. The red and blue lines represent the linear scaling functions computed by Linear Fit (it doesn’t look linear on the plot on the left because of the logarithmic axes)
And the same plot on a linear axis scale:
You can see the saturated stars as the red dot on the top right edge (x-values between 0.85 and 1, and y-values saturated at 1). If these pixels are taken into account when doing LF, the incorrect fit (red line) would result in an artificially dim result when applied to the main luminance, risking color underflow after LRGB combination. I believe this is the effect that @Jim Raskett showed in his example.
So, to summarise, I think replacing the luminance before stretching can be done, provided that care is taken to ensure that the replacement L component is commensurate with the original one, either through LF or other means.
A question to those more experienced than me: let’s assume I want to apply noise reduction after the linear Luminance replacement. Do I get better results by applying NXT immediately, or should I perhaps apply a light stretch so that, let’s say, the intensity noise variance is stretched to cover a wide range (say, 0.05 to 0.15)?