<?xml version="1.0" encoding="UTF-8"?>
<!--
********************************************************************
PixInsight XML Process Serialization Module - XPSM 1.0
********************************************************************
Automatically generated on 2017/06/13 21:17:08 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="StarMask" id="Step16_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="PixelMath" id="Step17_PixelMath_Subtract_Stars_from_RangeMask_Ch17_instance">
      <parameter id="expression">range_mask - star_mask</parameter>
      <parameter id="expression1"></parameter>
      <parameter id="expression2"></parameter>
      <parameter id="expression3"></parameter>
      <parameter id="useSingleExpression" value="true"/>
      <parameter id="symbols"></parameter>
      <parameter id="generateOutput" value="true"/>
      <parameter id="singleThreaded" value="false"/>
      <parameter id="use64BitWorkingImage" value="false"/>
      <parameter id="rescale" value="false"/>
      <parameter id="rescaleLower" value="0"/>
      <parameter id="rescaleUpper" value="1"/>
      <parameter id="truncate" value="true"/>
      <parameter id="truncateLower" value="0"/>
      <parameter id="truncateUpper" value="1"/>
      <parameter id="createNewImage" value="true"/>
      <parameter id="showNewImage" value="true"/>
      <parameter id="newImageId">starless_mask</parameter>
      <parameter id="newImageWidth" value="0"/>
      <parameter id="newImageHeight" value="0"/>
      <parameter id="newImageAlpha" value="false"/>
      <parameter id="newImageColorSpace" value="SameAsTarget"/>
      <parameter id="newImageSampleFormat" value="SameAsTarget"/>
      <table id="outputData" rows="0"/>
   </instance>
   <instance class="CurvesTransformation" id="Step18_Optional_CurvesTransformation_For_Nebula_instance">
      <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="5">
         <tr>
            <td id="x" value="0.00000"/>
            <td id="y" value="0.00000"/>
         </tr>
         <tr>
            <td id="x" value="0.24289"/>
            <td id="y" value="0.20972"/>
         </tr>
         <tr>
            <td id="x" value="0.50388"/>
            <td id="y" value="0.53197"/>
         </tr>
         <tr>
            <td id="x" value="0.75711"/>
            <td id="y" value="0.75448"/>
         </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="RangeSelection" id="Step12_RangeSelection_Ch17_instance">
      <description>****************************************************************
*** USED TO PROTECT LOW SIGNAL AND BACKGROUND AREAS FROM LHE ***
****************************************************************

1. A 'Lower limit' setting of 0.3 is usually right to protect galaxies.

2. To remove large stars try changing te 'Fuzziness' &amp; 'Smoothness' settings.


*********************************************
*** DIFFICULT CASES  E.G. DIFFUSE NEBULAE ***
*********************************************

N.B. It's probably easier to combine a RangeSelction &amp; Star Mask using PixelMath.

1. Lower the 'Upper limit' to dial out stars.

2. Adjust all four sliders to isolate strong signal areas while eliminating the majority of stars.</description>
      <parameter id="lowRange" value="0.300000"/>
      <parameter id="highRange" value="1.000000"/>
      <parameter id="fuzziness" value="0.20"/>
      <parameter id="smoothness" value="60.00"/>
      <parameter id="screening" value="false"/>
      <parameter id="toLightness" value="true"/>
      <parameter id="invert" value="false"/>
   </instance>
   <instance class="Binarize" id="Step13_Binarze_Increase_Mask_Efficiency_instance">
      <parameter id="thresholdRK" value="0.20000000"/>
      <parameter id="thresholdG" value="0.20000000"/>
      <parameter id="thresholdB" value="0.20000000"/>
      <parameter id="isGlobal" value="true"/>
   </instance>
   <instance class="Convolution" id="Step14_Convolution_Soften_Mask_Edges_instance">
      <parameter id="mode" value="Parametric"/>
      <parameter id="sigma" value="50.00"/>
      <parameter id="shape" value="2.00"/>
      <parameter id="aspectRatio" value="1.00"/>
      <parameter id="rotationAngle" value="0.00"/>
      <parameter id="filterSource"></parameter>
      <parameter id="rescaleHighPass" value="false"/>
      <parameter id="viewId"></parameter>
   </instance>
   <instance class="CloneStamp" id="Step15_Clonestamp_Remove_Residual_Stars_instance">
      <description>**********************************************
*** USED TO REMOVE STARS FROM THE RANGEMASK***
**********************************************

1. Adjust 'Radius' if required.

2. Press 'Ctrl' and click an area of background.

3. Click on a star to paste the background area over the star.

4. Once you have removed all stars, click the 'Execute' button (Green Arrow)</description>
      <table id="cloner" rows="0"/>
      <table id="actions" rows="0"/>
      <parameter id="width" value="11582"/>
      <parameter id="height" value="7732"/>
      <parameter id="clonerColor" value="4292927712"/>
      <parameter id="boundsColor" value="4292927712"/>
   </instance>
   <instance class="LocalHistogramEqualization" id="Step19_LocalHistogramEqualisation_Ch17_instance">
      <description>**********************************************************
*** TRY NOT TO OVERDO IT, YOU CAN ALWAYS DO MORE LATER ***
**********************************************************

1. KEEP MASK IN PLACE

Use two passes to enhance small scale then large scale contrast.

Kernel Radius
 - Small scale: Use values of 25-75. [50 Seems good]
 - Large scale: Use values of 100-150. [125 seems good]

Contrast Limit
 - Normally a setting of 1.5 is best
 - Can be varied between 1.5 - 2.5 if required.

Amount
 - Try somewhere between:
    - 0.25 (25% of the original will be kept)
    - 0.75 (75% of the original will be kept)


PETE NOTE:
   I generally just adjust the %age value to find the best fit.</description>
      <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="MultiscaleLinearTransform" id="Step20_MLT_Sharpen_Fine_Detail_Ch17_instance">
      <description>***************************************************
*** USED TO SHARPEN DETAIL IN HIGH SIGNAL AREAS ***
***************************************************

1. KEEP PREVIOUS MASK IN PLACE










***************************************************
************** FOR GENERAL USE ********************
***************************************************
1. Create a mask with RangeMask first.

Detail Layer Bias
 - Typically adjust this between 0.012 - 0.075

Deringing
 - Start with a value of 0.1, raise if necessary.

 Dynamic Range Extension
  - Low Setting of 0.25 is normally good.
  - High Setting of between 0.25 - 0.50 is normally good.</description>
      <table id="layers" rows="5">
         <tr>
            <td id="enabled" value="true"/>
            <td id="biasEnabled" value="true"/>
            <td id="bias" value="0.000"/>
            <td id="noiseReductionEnabled" value="false"/>
            <td id="noiseReductionThreshold" value="3.000"/>
            <td id="noiseReductionAmount" value="1.00"/>
            <td id="noiseReductionIterations" value="1"/>
         </tr>
         <tr>
            <td id="enabled" value="true"/>
            <td id="biasEnabled" value="true"/>
            <td id="bias" value="0.025"/>
            <td id="noiseReductionEnabled" value="false"/>
            <td id="noiseReductionThreshold" value="3.000"/>
            <td id="noiseReductionAmount" value="1.00"/>
            <td id="noiseReductionIterations" value="1"/>
         </tr>
         <tr>
            <td id="enabled" value="true"/>
            <td id="biasEnabled" value="true"/>
            <td id="bias" value="0.025"/>
            <td id="noiseReductionEnabled" value="false"/>
            <td id="noiseReductionThreshold" value="3.000"/>
            <td id="noiseReductionAmount" value="1.00"/>
            <td id="noiseReductionIterations" value="1"/>
         </tr>
         <tr>
            <td id="enabled" value="true"/>
            <td id="biasEnabled" value="true"/>
            <td id="bias" value="0.012"/>
            <td id="noiseReductionEnabled" value="false"/>
            <td id="noiseReductionThreshold" value="3.000"/>
            <td id="noiseReductionAmount" value="1.00"/>
            <td id="noiseReductionIterations" value="1"/>
         </tr>
         <tr>
            <td id="enabled" value="true"/>
            <td id="biasEnabled" value="true"/>
            <td id="bias" value="0.000"/>
            <td id="noiseReductionEnabled" value="false"/>
            <td id="noiseReductionThreshold" value="3.000"/>
            <td id="noiseReductionAmount" value="1.00"/>
            <td id="noiseReductionIterations" value="1"/>
         </tr>
      </table>
      <parameter id="transform" value="StarletTransform"/>
      <parameter id="scaleDelta" value="0"/>
      <parameter id="scalingFunctionData">0.25,0.5,0.25,0.5,1,0.5,0.25,0.5,0.25</parameter>
      <parameter id="scalingFunctionRowFilter">0.5,1,0.5</parameter>
      <parameter id="scalingFunctionColFilter">0.5,1,0.5</parameter>
      <parameter id="scalingFunctionNoiseSigma">0.8003,0.2729,0.1198,0.0578,0.0287,0.0143,0.0072,0.0036,0.0019,0.001</parameter>
      <parameter id="scalingFunctionName">Linear Interpolation (3)</parameter>
      <parameter id="linearMask" value="false"/>
      <parameter id="linearMaskAmpFactor" value="100"/>
      <parameter id="linearMaskSmoothness" value="1.00"/>
      <parameter id="linearMaskInverted" value="true"/>
      <parameter id="linearMaskPreview" value="false"/>
      <parameter id="largeScaleFunction" value="NoFunction"/>
      <parameter id="curveBreakPoint" value="0.75"/>
      <parameter id="noiseThresholding" value="false"/>
      <parameter id="noiseThresholdingAmount" value="1.00"/>
      <parameter id="noiseThreshold" value="3.00"/>
      <parameter id="softThresholding" value="true"/>
      <parameter id="useMultiresolutionSupport" value="false"/>
      <parameter id="deringing" value="true"/>
      <parameter id="deringingDark" value="0.1000"/>
      <parameter id="deringingBright" value="0.0000"/>
      <parameter id="outputDeringingMaps" value="false"/>
      <parameter id="lowRange" value="0.2500"/>
      <parameter id="highRange" value="0.5000"/>
      <parameter id="previewMode" value="Disabled"/>
      <parameter id="previewLayer" value="0"/>
      <parameter id="toLuminance" value="true"/>
      <parameter id="toChrominance" value="false"/>
      <parameter id="linear" value="false"/>
   </instance>
   <instance class="UnsharpMask" id="Step21_UnsharpMask_Sharpen_Fine_Detail_Ch17_instance">
      <description>********************************************************
*** USED TO SHARPEN FINE DETAIL IN HIGH SIGNAL AREAS ***
********************************************************

USE THE SAME MASK AS FOR THE PREVIOUS MLT STEP

Standard Deviation
 - A value of 1.0 - 2.0 is normally good for fine sharpening.
 - A value of 25 - 50 is normaly good for increasing contrast.

Amount
 - A value of 0.18 - 0.75 is normally good for a natural looking result.

Target
 - Use CIE L*

Deringing
 - A value of 0.01 - 0.05 is normally good.

Dynamic Range Extension
 - Low Setting of 0.25 is normally good.
 - High setting of 0.25 - 0.50 is normally good.</description>
      <parameter id="sigma" value="1.50"/>
      <parameter id="amount" value="0.25"/>
      <parameter id="useLuminance" value="true"/>
      <parameter id="linear" value="false"/>
      <parameter id="deringing" value="true"/>
      <parameter id="deringingDark" value="0.0100"/>
      <parameter id="deringingBright" value="0.0000"/>
      <parameter id="outputDeringingMaps" value="false"/>
      <parameter id="rangeLow" value="0.2500000"/>
      <parameter id="rangeHigh" value="0.5000000"/>
   </instance>
   <icon id="Step16_StarMask_Ch17" instance="Step16_StarMask_Ch17_instance" xpos="12" ypos="465" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step17_PixelMath_Subtract_Stars_from_RangeMask_Ch17" instance="Step17_PixelMath_Subtract_Stars_from_RangeMask_Ch17_instance" xpos="12" ypos="495" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step18_Optional_CurvesTransformation_For_Nebula" instance="Step18_Optional_CurvesTransformation_For_Nebula_instance" xpos="12" ypos="525" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step12_RangeSelection_Ch17" instance="Step12_RangeSelection_Ch17_instance" xpos="12" ypos="345" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step13_Binarze_Increase_Mask_Efficiency" instance="Step13_Binarze_Increase_Mask_Efficiency_instance" xpos="12" ypos="375" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step14_Convolution_Soften_Mask_Edges" instance="Step14_Convolution_Soften_Mask_Edges_instance" xpos="12" ypos="405" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step15_Clonestamp_Remove_Residual_Stars" instance="Step15_Clonestamp_Remove_Residual_Stars_instance" xpos="12" ypos="436" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step19_LocalHistogramEqualisation_Ch17" instance="Step19_LocalHistogramEqualisation_Ch17_instance" xpos="13" ypos="555" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step20_MLT_Sharpen_Fine_Detail_Ch17" instance="Step20_MLT_Sharpen_Fine_Detail_Ch17_instance" xpos="14" ypos="583" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step21_UnsharpMask_Sharpen_Fine_Detail_Ch17" instance="Step21_UnsharpMask_Sharpen_Fine_Detail_Ch17_instance" xpos="12" ypos="615" workspace="Non_Linear_Post_Processing"/>
</xpsm>
