<?xml version="1.0" encoding="UTF-8"?>
<!--
********************************************************************
PixInsight XML Process Serialization Module - XPSM 1.0
********************************************************************
Automatically generated on 2017/06/13 21:18:55 UTC
PixInsight Core 01.08.04.1195 (x64)
Copyright (c) 2003-2015 Pleiades Astrophoto
********************************************************************
-->
<xpsm version="1.0" xmlns="http://www.pixinsight.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pixinsight.com http://pixinsight.com/xsd/xpsm-1.0.xsd">
   <instance class="TGVDenoise" id="Step25_Optional_TVGDenoise_Ch18_instance">
      <description>This may be required after adjusting Curves or Colour Saturation

**************************************************************
*** USE AN INVERTED RANGEMASK TO PROTECT HIGH-SIGNAL AREAS ***
**************************************************************


Strength
1. Change the exponent value (far right) to find the best range to be in.
2. Change the coefficient value (middle box / slider) to find the best value.


Edge Protection
1. Create a small preview with no stars or nebulosity.
2. Open Statistics process and select preview as view.
3. If StdDev isn't in the list, add it using the wrench button
4. Set the edge protection of the middle value and power.


Smoothness
1. Default values generally work well, adjust it to combat 'blotchyness' if required.


Iterations
1. Use 250 iterations for testing.
2. Increase to 500-1000 for the actual application.</description>
      <parameter id="rgbkMode" value="false"/>
      <parameter id="filterEnabledL" value="true"/>
      <parameter id="filterEnabledC" value="true"/>
      <parameter id="strengthL" value="5.00000000"/>
      <parameter id="strengthC" value="7.00000000"/>
      <parameter id="edgeProtectionL" value="0.00300000"/>
      <parameter id="edgeProtectionC" value="0.00300000"/>
      <parameter id="smoothnessL" value="2.00000000"/>
      <parameter id="smoothnessC" value="2.00000000"/>
      <parameter id="maxIterationsL" value="250"/>
      <parameter id="maxIterationsC" value="250"/>
      <parameter id="convergenceEnabledL" value="false"/>
      <parameter id="convergenceEnabledC" value="false"/>
      <parameter id="convergenceLimitL" value="0.00400000"/>
      <parameter id="convergenceLimitC" value="0.00400000"/>
      <parameter id="supportEnabled" value="false"/>
      <parameter id="supportViewId"></parameter>
      <parameter id="supportPreview" value="false"/>
      <parameter id="supportRemovedWaveletLayers" value="0"/>
      <parameter id="supportShadowsClip" value="0.00000"/>
      <parameter id="supportHighlightsClip" value="1.00000"/>
      <parameter id="supportMidtonesBalance" value="0.50000"/>
   </instance>
   <instance class="Script" id="Step28_Optional_ColorMask_Ch18_instance">
      <description>DEFAULT SETTINGS ARE NORMALLY FINE

Chrominance Mask
 - This selects more saturated areas of the chosen colour.

Lightness Mask
 - This selects the brighter areas of the chosen colour.</description>
      <parameter id="filePath">$PXI_SRCDIR/scripts/ColorMask/ColorMask_0.7.js</parameter>
      <parameter id="md5sum">87a0c5d3773e68c6633b599d4879adf9</parameter>
      <table id="parameters" rows="5">
         <tr>
            <td id="id">minHue</td>
            <td id="value">0</td>
         </tr>
         <tr>
            <td id="id">maxHue</td>
            <td id="value">0</td>
         </tr>
         <tr>
            <td id="id">maskType</td>
            <td id="value">0</td>
         </tr>
         <tr>
            <td id="id">maskStrength</td>
            <td id="value">1</td>
         </tr>
         <tr>
            <td id="id">blurLayers</td>
            <td id="value">0</td>
         </tr>
      </table>
   </instance>
   <instance class="CloneStamp" id="Step31_Optional_Clonestamp_Ch19_instance">
      <description>Use this to remove any bad pixels, satelite trails, etc.</description>
      <table id="cloner" rows="0"/>
      <table id="actions" rows="0"/>
      <parameter id="width" value="0"/>
      <parameter id="height" value="0"/>
      <parameter id="clonerColor" value="4292927712"/>
      <parameter id="boundsColor" value="4292927712"/>
   </instance>
   <instance class="StarMask" id="Step22_StarMask_Ch17_instance">
      <description>1. Extract Lightness image from original using 'ChannelExtraction'.

2. Create a preview which includes various star sizes

GUIDELINES

 - If noise or other non-stellar structures are included, raise the 'Noise threshold'.

 - If large stars are not included, raise the 'Scale' amount.

 - Under 'Mask preprocessing', raise the 'Midtones' slider to exclude dim stars.

 - If needed, raise the 'Shadows' slider to further restrict selection to bright stars.

 - Lowering 'Truncation' will also provide a stronger result.

 - Deselect galactic cores using the Clonestamp process (Ch 17) or by adjusting the 'Midtones' slider further.

 - Structure Growth
   &gt; Lower 'Large-scale' to make large stars smaller, increase for the opposite effect.
   &gt; Lower 'Small-scale' to make small stars smaller, increase for the opposite effect.</description>
      <parameter id="shadowsClipping" value="0.00000"/>
      <parameter id="midtonesBalance" value="0.50000"/>
      <parameter id="highlightsClipping" value="1.00000"/>
      <parameter id="waveletLayers" value="5"/>
      <parameter id="structureContours" value="false"/>
      <parameter id="noiseThreshold" value="0.10000"/>
      <parameter id="aggregateStructures" value="false"/>
      <parameter id="binarizeStructures" value="false"/>
      <parameter id="largeScaleGrowth" value="4"/>
      <parameter id="smallScaleGrowth" value="2"/>
      <parameter id="growthCompensation" value="2"/>
      <parameter id="smoothness" value="16"/>
      <parameter id="invert" value="false"/>
      <parameter id="truncation" value="1.00000"/>
      <parameter id="limit" value="1.00000"/>
      <parameter id="mode" value="StarMask"/>
   </instance>
   <instance class="ExponentialTransformation" id="Step24_ExponentialTransformation_Enhance_Fine_Background_Detail_instance">
      <description>*********************************************
*** USE THE PREVIEW TO GET SETTINGS RIGHT ***
*********************************************

Function
 - Normally PIP function works well.
 - SMI is a bit more extreme

Order
 - Mormally somewhere between 0.1 - 1.0 works well.

Smoothness
 - Normally somewhere around 1.0 works well.

Lightness Mask
 - Leave this enabled.</description>
      <parameter id="functionType" value="PIP"/>
      <parameter id="order" value="1.0"/>
      <parameter id="sigma" value="1.00"/>
      <parameter id="useLightnessMask" value="true"/>
   </instance>
   <instance class="LocalHistogramEqualization" id="Step23_LHE_Enhance_Fine_Background_Detail_EG_Dust_instance">
      <parameter id="radius" value="50"/>
      <parameter id="histogramBins" value="Bit8"/>
      <parameter id="slopeLimit" value="1.5"/>
      <parameter id="amount" value="0.500"/>
      <parameter id="circularKernel" value="true"/>
   </instance>
   <instance class="CurvesTransformation" id="Step26_CurvesT_Ch18_instance">
      <description>1. Use either a luminance or range mask to protect background

2. Use readout mode to check an area of background to ensure all 3 colour channels are properly aligned.</description>
      <table id="R" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="Rt" value="AkimaSubsplines"/>
      <table id="G" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="Gt" value="AkimaSubsplines"/>
      <table id="B" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="Bt" value="AkimaSubsplines"/>
      <table id="K" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="Kt" value="AkimaSubsplines"/>
      <table id="A" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="At" value="AkimaSubsplines"/>
      <table id="L" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="Lt" value="AkimaSubsplines"/>
      <table id="a" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="at" value="AkimaSubsplines"/>
      <table id="b" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="bt" value="AkimaSubsplines"/>
      <table id="c" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="ct" value="AkimaSubsplines"/>
      <table id="H" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="Ht" value="AkimaSubsplines"/>
      <table id="S" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="1.00000"/>
         </tr>
      </table>
      <parameter id="St" value="AkimaSubsplines"/>
   </instance>
   <instance class="ColorSaturation" id="Step27_ColourS_Ch18_instance">
      <description>**************************************************
*** USE INSTEAD OR AFTER CURVES TRANSFORMATION ***
**************************************************

If you use masks like starmasks or range masks you can change the saturation of different elements.</description>
      <table id="HS" rows="2">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="1.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
      </table>
      <parameter id="HSt" value="AkimaSubsplines"/>
      <parameter id="hueShift" value="0.000"/>
   </instance>
   <instance class="ExponentialTransformation" id="Step30_Optional_ExponentialTransformation_Ch19_instance">
      <description>*********************************************
*** USE THE PREVIEW TO GET SETTINGS RIGHT ***
*********************************************

Function
 - Normally PIP function works well.
 - SMI is a bit more extreme

Order
 - Mormally somewhere between 0.1 - 1.0 works well.

Smoothness
 - Normally somewhere around 1.0 works well.

Lightness Mask
 - Leave this enabled.</description>
      <parameter id="functionType" value="PIP"/>
      <parameter id="order" value="1.0"/>
      <parameter id="sigma" value="1.00"/>
      <parameter id="useLightnessMask" value="true"/>
   </instance>
   <instance class="MorphologicalTransformation" id="Step31_MorphologicalTransformation_Ch19_instance">
      <description>**************************************************************
*** USED TO SHRINK BLOATED STARS OR REDUCE NUMBER OF STARS ***
**************************************************************
***************** ALWAYS USE A STAR MASK *********************
**************************************************************

Operator
 - Erosion (Minimum) &gt; Use this for shirnking stars.
 - Morpholigical Selection &gt; Shirnks stars more subtly.

Structuring Element
 - Use the circular one (Second row, second from the left)

Structure Manager
 - Chose 5x5 Circular.
 - Chose Size 5 (25 elements)

Selection
 - Lowering this value creates more erosion.
 - Raising this value creates more dilation.</description>
      <parameter id="operator" value="Selection"/>
      <parameter id="interlacingDistance" value="1"/>
      <parameter id="lowThreshold" value="0.000000"/>
      <parameter id="highThreshold" value="0.000000"/>
      <parameter id="numberOfIterations" value="1"/>
      <parameter id="amount" value="0.25"/>
      <parameter id="selectionPoint" value="0.25"/>
      <parameter id="structureName">5x5 Circular Structure</parameter>
      <parameter id="structureSize" value="5"/>
      <table id="structureWayTable" rows="1">
         <tr>
            <td id="mask">0x00,0x01,0x01,0x01,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x01,0x01,0x01,0x00</td>
         </tr>
      </table>
   </instance>
   <instance class="ScreenTransferFunction" id="Step29_Optional_DarkStructureEnhance_Script_Ch19_instance">
      <description>Standard settings normally work fine

An amount of 0.10 - 0.30 is normally a good range.</description>
      <table id="STF" rows="4">
         <tr>
            <td id="c0" value="0.00000"/>
            <td id="c1" value="1.00000"/>
            <td id="m" value="0.50000"/>
            <td id="r0" value="0.00000"/>
            <td id="r1" value="1.00000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000"/>
            <td id="c1" value="1.00000"/>
            <td id="m" value="0.50000"/>
            <td id="r0" value="0.00000"/>
            <td id="r1" value="1.00000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000"/>
            <td id="c1" value="1.00000"/>
            <td id="m" value="0.50000"/>
            <td id="r0" value="0.00000"/>
            <td id="r1" value="1.00000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000"/>
            <td id="c1" value="1.00000"/>
            <td id="m" value="0.50000"/>
            <td id="r0" value="0.00000"/>
            <td id="r1" value="1.00000"/>
         </tr>
      </table>
      <parameter id="interaction" value="SeparateChannels"/>
   </instance>
   <icon id="Step25_Optional_TVGDenoise_Ch18" instance="Step25_Optional_TVGDenoise_Ch18_instance" xpos="1629" ypos="104" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step28_Optional_ColorMask_Ch18" instance="Step28_Optional_ColorMask_Ch18_instance" xpos="1639" ypos="194" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step31_Optional_Clonestamp_Ch19" instance="Step31_Optional_Clonestamp_Ch19_instance" xpos="1632" ypos="313" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step22_StarMask_Ch17" instance="Step22_StarMask_Ch17_instance" xpos="1700" ypos="14" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step24_ExponentialTransformation_Enhance_Fine_Background_Detail" instance="Step24_ExponentialTransformation_Enhance_Fine_Background_Detail_instance" xpos="1438" ypos="74" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step23_LHE_Enhance_Fine_Background_Detail_EG_Dust" instance="Step23_LHE_Enhance_Fine_Background_Detail_EG_Dust_instance" xpos="1513" ypos="44" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step26_CurvesT_Ch18" instance="Step26_CurvesT_Ch18_instance" xpos="1705" ypos="134" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step27_ColourS_Ch18" instance="Step27_ColourS_Ch18_instance" xpos="1707" ypos="164" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step30_Optional_ExponentialTransformation_Ch19" instance="Step30_Optional_ExponentialTransformation_Ch19_instance" xpos="1547" ypos="254" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step31_MorphologicalTransformation_Ch19" instance="Step31_MorphologicalTransformation_Ch19_instance" xpos="1588" ypos="284" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step29_Optional_DarkStructureEnhance_Script_Ch19" instance="Step29_Optional_DarkStructureEnhance_Script_Ch19_instance" xpos="1530" ypos="224" workspace="Non_Linear_Post_Processing"/>
</xpsm>
