AutoIntegrate Gradient Correction Tool

AutoIntegrate Gradient Correction Tool

1. Overview

This script is a standalone tool derived from the AutoIntegrate script. It is designed solely for Gradient correction. This script provides a unified interface for removing background gradients (caused by light pollution, moon glow, or vignetting) from your images. It acts as a wrapper, allowing you to easily choose between several powerful gradient removal tools available within or external to PixInsight. The user can select one of the available gradient correction methods and apply it to an image.

Location: Script / AutoIntegrate
Repository: https://ruuth.xyz/autointegrate/

2. Inputs & Parameters

You will primarily interact with the Gradient Correction Choice section. The main settings are:

  • Target Image:
    • Select the view/image you wish to stretch from the dropdown list.
  • Correction Method: Select the specific tool to calculate the gradient:
    • GradientCorrection: PixInsight built in tool for handling gradients.
    • ABE (AutomaticBackgroundExtractor): A standard PixInsight tool that works well for simple, geometric gradients (linear or quadratic).
    • DBE (DynamicBackgroundExtractor): A standard PixInsight tool for more control. The script automatically places sample points based on calculations on the image. To protect complex images where automatic tools might mistakenly remove nebulosity it is possible to define an exclusion area where no sample points are placed.
    • MultiscaleGradientCorrection: An advanced method that uses the MARS database to separate sky background from nebulosity (requires the image to be Plate Solved first).
    • GraXpert: Uses external AI-based background extraction (requires GraXpert to be installed/configured).
  • Options:
    • Output background model: If checked, the script preserves the image of the extracted gradient after processing. Not available for all tools.
    • Preview autostretch: Since images are usually non-stretched (linear) the preview image is stretched for user convenience. Stretching can be disabled by unchecking the AutoSTF option.
    • Depending on the method selected above, specific settings are available for each gradient correction method.
  • Undo and redo: There are undo and redo buttons for easier iteration between different gradient correction methods.
  • Save and load setup: It is possible to save settings to a json file, and load settings from a Json file.
  • More info: https://ruuth.xyz/AutoIntegrateInfo.html\#gradientcorrection

3. Output

  • A New Image: The script generates a new image window with gradient correction applied..