<?xml version="1.0" encoding="UTF-8"?>
<!--
********************************************************************
PixInsight XML Process Serialization Module - XPSM 1.0
********************************************************************
Automatically generated on 2017/06/13 21:16:17 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="PixelMath" id="Step10_Optional_Blend_Images_If_HDR_Aas_Too_Strong_Ch16_instance">
      <description>Chapter 16 of book will explain how to blend images</description>
      <parameter id="expression"></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="false"/>
      <parameter id="showNewImage" value="true"/>
      <parameter id="newImageId"></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="FastRotation" id="Step03_Rotate_Image_FastRotate_Ch14_instance">
      <parameter id="mode" value="Rotate180"/>
      <parameter id="noGUIMessages" value="false"/>
   </instance>
   <instance class="StarMask" id="Step08_Local_Deringing_Support_Image_Ch10_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="HDRMultiscaleTransform" id="Step09_HDRMultiscaleTransform_Ch16_instance">
      <description>***********************************************************
*** USE THIS FOR GALAXIES, OR NEBULA, WITH BRIGHT CORES ***
***********************************************************

1. Layers normally work best at 6 but 3-7 is an acceptable range.

2. Test settings with 'Median transform' ticked then redo with it unticked to see which looks better, ignore any ringing around stars with it unticked. [Unticked = Atrous Wavlet Algorythm (AT)]

3. If AT (unticked) looks better then enable 'Deringing', try to use as low a settinng as possible for both small &amp; large scale sliders. Try default values first.

4. With AT the 'B3 spline' scaling function is normally fine, you can try 'Linear Interpolation' if you are trying to isolate small structures.

5. Keep 'To Lightness' &amp; 'Preserve hue' ticked.

6. Use Lightness mask as first try, if it turns large stars into donuts try using a 'Local Deringing Support Image'</description>
      <parameter id="numberOfLayers" value="6"/>
      <parameter id="numberOfIterations" value="1"/>
      <parameter id="invertedIterations" value="true"/>
      <parameter id="overdrive" value="0.000"/>
      <parameter id="medianTransform" value="true"/>
      <parameter id="scalingFunctionData">0.003906,0.015625,0.023438,0.015625,0.003906,0.015625,0.0625,0.09375,0.0625,0.015625,0.023438,0.09375,0.140625,0.09375,0.023438,0.015625,0.0625,0.09375,0.0625,0.015625,0.003906,0.015625,0.023438,0.015625,0.003906</parameter>
      <parameter id="scalingFunctionRowFilter">0.0625,0.25,0.375,0.25,0.0625</parameter>
      <parameter id="scalingFunctionColFilter">0.0625,0.25,0.375,0.25,0.0625</parameter>
      <parameter id="scalingFunctionName">B3 Spline (5)</parameter>
      <parameter id="deringing" value="false"/>
      <parameter id="smallScaleDeringing" value="0.000"/>
      <parameter id="largeScaleDeringing" value="0.250"/>
      <parameter id="outputDeringingMaps" value="false"/>
      <parameter id="midtonesBalanceMode" value="Automatic"/>
      <parameter id="midtonesBalance" value="0.500000"/>
      <parameter id="toLightness" value="true"/>
      <parameter id="preserveHue" value="true"/>
      <parameter id="luminanceMask" value="true"/>
   </instance>
   <instance class="CurvesTransformation" id="Step11_CurvesTransformation_Ch17_instance">
      <description>**********************************************************
*** TRY NOT TO OVERDO IT, YOU CAN ALWAYS DO MORE LATER ***
**********************************************************

1. In 'L' channel:
    - Fix top on top third intersection.
    - Adjust middle up very slightly.
    - Adjust botton third intersection down slightly.

2. Optionally repeat Step 1 for individual colour channels. To reset adjustments to a single channel, select it and click the red 'X' button.</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="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="ScreenTransferFunction" id="Step01_Use_STF_To_Define_Stretch_Ch13_instance">
      <description>1. For RGB image, lock sliders together.

2. Drag middle slider over to bring out all detail required.

3. Optionallu unlock sliders to adjust individual colour channels.

4. Drag left slider over to darken background, not too black.

5. Drag the STF instance into 'HitogramTransformation' then apply to image.</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>
   <instance class="HistogramTransformation" id="Step02_Apply_Stretch_with_HistogramTransformation_Ch13_instance">
      <description>Transfer the STF settings into HistogramTransformation by dragging the 'New Instance' icon from STF into bar at the bottom of HistogramTransformation.</description>
      <table id="H" rows="5">
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
      </table>
   </instance>
   <instance class="RangeSelection" id="Step05_RangeMask_Protect_High_Signal_Areas_Ch15_instance">
      <description>Don't select too much detail, only protect really bright areas.

A value of 0.3 is normally suitable to select galaxies.</description>
      <parameter id="lowRange" value="0.100000"/>
      <parameter id="highRange" value="1.000000"/>
      <parameter id="fuzziness" value="0.00"/>
      <parameter id="smoothness" value="0.00"/>
      <parameter id="screening" value="false"/>
      <parameter id="toLightness" value="true"/>
      <parameter id="invert" value="false"/>
   </instance>
   <instance class="TGVDenoise" id="Step06_TVGDenoise_Ch15_instance">
      <description>**************************************************************
*** 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="HistogramTransformation" id="Step07_Optional_Raise_Black_Point_If_Required_instance">
      <table id="H" rows="5">
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
         <tr>
            <td id="c0" value="0.00000000"/>
            <td id="m" value="0.50000000"/>
            <td id="c1" value="1.00000000"/>
            <td id="r0" value="0.00000000"/>
            <td id="r1" value="1.00000000"/>
         </tr>
      </table>
   </instance>
   <icon id="Step10_Optional_Blend_Images_If_HDR_Aas_Too_Strong_Ch16" instance="Step10_Optional_Blend_Images_If_HDR_Aas_Too_Strong_Ch16_instance" xpos="12" ypos="254" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step03_Rotate_Image_FastRotate_Ch14" instance="Step03_Rotate_Image_FastRotate_Ch14_instance" xpos="12" ypos="74" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step08_Local_Deringing_Support_Image_Ch10" instance="Step08_Local_Deringing_Support_Image_Ch10_instance" xpos="12" ypos="194" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step09_HDRMultiscaleTransform_Ch16" instance="Step09_HDRMultiscaleTransform_Ch16_instance" xpos="12" ypos="224" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step11_CurvesTransformation_Ch17" instance="Step11_CurvesTransformation_Ch17_instance" xpos="12" ypos="284" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step01_Use_STF_To_Define_Stretch_Ch13" instance="Step01_Use_STF_To_Define_Stretch_Ch13_instance" xpos="12" ypos="14" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step02_Apply_Stretch_with_HistogramTransformation_Ch13" instance="Step02_Apply_Stretch_with_HistogramTransformation_Ch13_instance" xpos="12" ypos="44" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step05_RangeMask_Protect_High_Signal_Areas_Ch15" instance="Step05_RangeMask_Protect_High_Signal_Areas_Ch15_instance" xpos="11" ypos="100" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step06_TVGDenoise_Ch15" instance="Step06_TVGDenoise_Ch15_instance" xpos="12" ypos="134" workspace="Non_Linear_Post_Processing"/>
   <icon id="Step07_Optional_Raise_Black_Point_If_Required" instance="Step07_Optional_Raise_Black_Point_If_Required_instance" xpos="12" ypos="164" workspace="Non_Linear_Post_Processing"/>
</xpsm>
