can you elaborate on how to go about building a linear mask for linear noise reduction using PixelMath.
As implemented in the MLT and MMT tools, a linear mask is just a duplicate of the linear image multiplied by an amplification factor, so the corresponding PixelMath expression can be as simple as:
$T*k
with k defined as a constant symbol such as k=100 for example. In the case of a color image one can apply this either to the duplicate RGB image (because in PixInsight you can use RGB masks with RGB images), or to single components such as H or I (extracted with ChannelExtraction working in the HSV and HSI color spaces, respectively). The linear mask should always be low-pass filtered to soften edges and make it more robust to local variations; this can be done easily with the Convolution tool applying a Gaussian filter.
The MultiscaleLinearTransform and MultiscaleMedianTransform tools include a linear mask generation feature that can be used to automate this process. If you enable the
Preview mask option (Linear Mask section), you'll get a linear mask directly if you apply the process to a duplicate of the image. This is similar to the same feature that has been available on the ACDNR tool for a long time. The main advantages of this method are that you can use the Real-Time Preview functionality of the tools, and a good linear mask is much easier to build because the tool computes it adaptively from image statistics.
can this linear mask be exported in order to use it in other processes?
Definitely yes. The linear mask generated with the MLT or MMT tools is just a regular mask. It can be used with any tool, and not just with noise reduction tools. The purpose of a linear mask is to map the SNR of a linear image, and hence it can be useful for any process that should be applied proportionally (directly or inversely) to SNR. For example, a noninverted linear mask can be useful for deconvolution.
We'll probably release a LinearMask tool in September to simplify generation of these masks.