Jump to content
  • Using the PI Game Script to Create a Mask

    Reggie Jones

    I was processing the Telescope Live data for the galaxy IC 5201 using PixInsight; the image includes the Celestial Sentinels, 2 very bright stars in the lower right of image frame.  After completing the pre processing work, there are a couple of things that are evident.  The first is that the Celestial Sentinel stars are quite beautiful, but their star halos are quite intense.  They need to be adjusted down a little.  The other item is that the IC 5201 galaxy is quite dim and it needs to be brightened to make the image more interesting.  In both cases, it will be tricky to address these issues without introducing new artifacts into the image.

    I’ve found there are at least 3 ways to work on these issues.  There is a script in PixInsight called the Star Halo Reducer script.  I’ve never actually used this script and I have not found any documentation that outlines how this script should be used.  I’ll do more investigation to find more information on this script, but I’m going to rule this tool out for now.

    Another method is to use the Range Mask tool to create masks to allow adjustments to be made on these image features.  I am a big fan of the Range Mask tool and I use it a lot; in the case of toning down the star halos, it is the tool I will use to allow adjustments to be made on these halos, but I will need to create a separate mask for brightening the galaxy.  This would be more work than I think is necessary - to brighten the galaxy, the Game Script would be the easiest solution to use.

    First, to find the Game Script, you need to go to Script > Utilities > GAME.

    The script is pretty straightforward to use.  A window opens showing the active window of the image you want to apply it to.  On the left side of the window, you need to first select whether you want to create an ellipsoid mask (Ellipses) or an irregularly shaped mask (Multi point).  In this case with a galaxy, an ellipsoid shaped mask will do.  The bottom section allows you to select what kind of mask you’d like to create; in this case, I will create a Gradient Mask.  If the brightness changes are abrupt, the image will not look very natural.

    With all this sorted out, simply click next.  An ellipse will appear in the image at right.  Click an hold the red dot in the center of ellipse and position it to where you need it.  Click on the outer white dots to size the ellipse exactly how you’d like.

    When you’re ready, click the “Ok” button and the mask is created.  Apply it to the image and review how it looks to you.  If you’re not satisfied, delete the mask and repeat the steps you just completed to create a new mask.

    After the mask is applied, I used the Curves Transformation tool (another fan favorite) to brighten the galaxy as is needed.  When you’re satisfied, compare the original image to the one you just (hopefully) improved.

    IC 5201 - https://app.telescope.live/click-grab/all?target=ic 5201


    TL GameMask Image 1.jpg

    TL GameMask Image 2.jpg

    TL GameMask Image 3.jpg

    TL GameMask Image 4.jpg

    TL GameMask Image 5.jpg

    TL GameMask Image 6.jpg

    TL GameMask Image 7.jpg

    TL GameMask Image 8.jpg

    User Feedback

    Recommended Comments

    There are no comments to display.

  • Create New...

Important Information

By using this site you agree to our Guidelines