Fundamentals · PixInsight 1.9.x

RangeSelection (Range Mask)

RangeSelection creates a mask (a “range mask”) that selects a brightness range. This limits a global process – such as a curve – to the nebula while protecting the background, or the other way round.

Purpose

TaskSetting
process only areas brighter than the backgroundLower limit just above the background
process only the backgroundthe same mask, Invert
Whya mask?

Curves and many other processes change all pixels of the same brightness in the same way. Faint nebula and background often sit at almost the same value; lifting the midtones brightens the background as well. The mask limits the effect to the intended area.

Principle

Mask valueEffect of the following process
whitefull processing
greypartial
blackprotected (shown in red when the mask is displayed)

The process is called RangeSelection (Process → MaskGeneration); the result is the range mask.

Parameters

ParameterEffectTypical choice
Lower limitvalues below become blackjust above the background (e.g. 0.15 in a stretched image)
Upper limitvalues above become black1.0
Fuzzinesssoft transition at the limits instead of a hard edge0.1–0.2
Smoothnessblurs the mask, prevents visible edges3–10, up to about 12
Screeningmask graded by brightness – faint structures would hardly be processedoff
Lightnessmask from L* instead of the RGB channels; colour images onlyoff
Invertinverts the maskoff (on: background only)

Operation

  1. Adjust RangeSelection with the Real-Time Preview, apply → new image, e.g. range_mask.
  2. Attach the mask: drag the tab of range_mask onto the left tab bar of the target image (or Mask → Select Mask).
  3. Hide the red overlay for judging: Mask → Show Mask (the mask stays active).
  4. Apply the actual process.
  5. Remove the mask: Mask → Remove Mask.

Typical applications

Lifting nebula, protecting background

Lower limit just above the background, then on RGB/K with a slightly raised midtone point (example: 0.30 → 0.33–0.35) and an upper fixed point (example: 0.80 → 0.80).

Processing only the background

The same mask with Invert. Example: against a green cast in the background while nebula with real green or teal components stays protected.

What a good result looks like

Typical errors

ObservationCauseRemedy
Hard transitions in the resultmask too sharpraise Fuzziness or Smoothness
Faint structures not processedLower limit too highlower the Lower limit
Background brighter anywayLower limit too lowraise the Lower limit
Faint structures barely processed despite a suitable limitScreening activeScreening off
Following processes act only partlymask still activeMask → Remove Mask

When to use it – and when not

Good forBetter another tool
limiting an effect by brightnessemphasising local contrast →
processing background separately from nebulaprotecting or processing stars separately →
Used in

CurvesTransformation · HaLRGB workflow · Narrowband workflow (HOO/SHO) · OSC workflow with a quad band-pass filter · SCNR