Juergen Terpe
Well-known member
Hello everyone,
I have written several scripts which might be useful especially for those of you using a OSC camera. The scripts are implemented especially to help beginners in PixInsight to produce good results but might also be useful to more advanced PixInsight users. All scripts are really simple, no rocket sciences, but helpful. The following 7 scripts are currently available:
AutoLinearFit: Does a linear fit on all three color channels and recombines them to the image again. You can choose the channel with the lowest mean (lowest signal) or with the lowest noise or just select the red, green or blue channel as a reference for the linear fit. This script is a time safer.
CreateHDRImage: Creates a second image, processes the HDRMultiscaleTransform on it and blends it with the original image. You can see the result of this in a smaller preview window and can easily adjust your HDR settings.
CombineImages: Combines two images using PixelMath, but without the need to understand PixelMath. Even for those comfortable with PixelMath this script might be a time safer. And you will see your combined image result as a preview.
ImproveBrilliance: You should create some previews of some regions of interest before using the script! Now you can select one of these previews and you can adjust the image contrast, the sharpness and other things to make your image look more brilliant. Switch between different previews to see your changes. Behind the scenes the script will extract the luminance from your image and will add contrast, a LocalHistogramEqualization and some sharpening before it combines the luminance with your image. All settings are limited to some useful ranges so you will not be able to do too much.
CreateHubblePaletteFromOSC: The script extracts Ha, OIII and SII from your OSC image and combines them as a Hubble Palette. You can select different schemes such as HOO, HOS, HSO, OSH... The resulting image will be stretched using the excellent GeneralizedHyperbolicStretch PixelMath expressions and you can change the symmetry point in relation to the mean value of the Ha, OIII or SII channel and also stretch the channels differently. The results of your changes are shown in a preview window, so you can adjust your changes until you are satisfied. Keep in mind that this script requires enough data, especially the OIII channel requires enough exposures for good results.
ContinuumSubtraction: Some targets like M33 have some details in Ha and you can add Ha to your RGB image, but it requires to subtract the continuum spectrum from your collected Ha signal to get a clean Ha signal (filters always also let pass small parts of the continuum). Select the narrowband image with the Ha (collected using filters such as the L-Extreme) and the RGB image of the target, both registered to each other. Now change the amount of the continuum to be subtracted and you will see the results of your changes in the preview. When satisfied with your changes the script will create a new image containing just the Ha signal.
CombineHaWithRGB: After subtracting the Ha you can use this script to combine it with the RGB image. You can reduce the noise by adjusting the black point of your Ha image and you can decide how much H-Beta (blue or together with Ha magenta) the final image should contain. The script shows a preview of your final result until you are happy with the results.
You can find the PixInsight Toolbox Scripts repository under https://www.ideviceapps.de/PixInsight/Utilities/ and it can be added using Resources => Updates => Manage Repositories. I hope the scripts are useful for you. I'm still working on a better documentation and will continue to work on the PixInsight Toolbox scripts.
Minimum PixInsight version is 1.8.9-1,
Best regards and clear skies!
Jürgen Terpe
I have written several scripts which might be useful especially for those of you using a OSC camera. The scripts are implemented especially to help beginners in PixInsight to produce good results but might also be useful to more advanced PixInsight users. All scripts are really simple, no rocket sciences, but helpful. The following 7 scripts are currently available:
AutoLinearFit: Does a linear fit on all three color channels and recombines them to the image again. You can choose the channel with the lowest mean (lowest signal) or with the lowest noise or just select the red, green or blue channel as a reference for the linear fit. This script is a time safer.
CreateHDRImage: Creates a second image, processes the HDRMultiscaleTransform on it and blends it with the original image. You can see the result of this in a smaller preview window and can easily adjust your HDR settings.
CombineImages: Combines two images using PixelMath, but without the need to understand PixelMath. Even for those comfortable with PixelMath this script might be a time safer. And you will see your combined image result as a preview.
ImproveBrilliance: You should create some previews of some regions of interest before using the script! Now you can select one of these previews and you can adjust the image contrast, the sharpness and other things to make your image look more brilliant. Switch between different previews to see your changes. Behind the scenes the script will extract the luminance from your image and will add contrast, a LocalHistogramEqualization and some sharpening before it combines the luminance with your image. All settings are limited to some useful ranges so you will not be able to do too much.
CreateHubblePaletteFromOSC: The script extracts Ha, OIII and SII from your OSC image and combines them as a Hubble Palette. You can select different schemes such as HOO, HOS, HSO, OSH... The resulting image will be stretched using the excellent GeneralizedHyperbolicStretch PixelMath expressions and you can change the symmetry point in relation to the mean value of the Ha, OIII or SII channel and also stretch the channels differently. The results of your changes are shown in a preview window, so you can adjust your changes until you are satisfied. Keep in mind that this script requires enough data, especially the OIII channel requires enough exposures for good results.
ContinuumSubtraction: Some targets like M33 have some details in Ha and you can add Ha to your RGB image, but it requires to subtract the continuum spectrum from your collected Ha signal to get a clean Ha signal (filters always also let pass small parts of the continuum). Select the narrowband image with the Ha (collected using filters such as the L-Extreme) and the RGB image of the target, both registered to each other. Now change the amount of the continuum to be subtracted and you will see the results of your changes in the preview. When satisfied with your changes the script will create a new image containing just the Ha signal.
CombineHaWithRGB: After subtracting the Ha you can use this script to combine it with the RGB image. You can reduce the noise by adjusting the black point of your Ha image and you can decide how much H-Beta (blue or together with Ha magenta) the final image should contain. The script shows a preview of your final result until you are happy with the results.
You can find the PixInsight Toolbox Scripts repository under https://www.ideviceapps.de/PixInsight/Utilities/ and it can be added using Resources => Updates => Manage Repositories. I hope the scripts are useful for you. I'm still working on a better documentation and will continue to work on the PixInsight Toolbox scripts.
Minimum PixInsight version is 1.8.9-1,
Best regards and clear skies!
Jürgen Terpe
Last edited: