Author Topic: Classic Star Mask Script  (Read 12241 times)

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Classic Star Mask Script
« on: 2011 September 12 07:01:18 »
Hi all:

As creating a star mask using the classic AtrousWavelets method is a tedious process, I wrote a little script that simplifies the process. The script tries to catch all the small and medium stars, but in return can remain a little nebulosity. The script works with stretched images.

I put the script in a Zip file.

And also some results of stars reduction in the first image I get. I do 3 iterations of MT with a new StarMask generated with the Script in each one.






I hope it's useful. Tell me if I can improve it.

Greetings. Silvercup.




Hola a todos:

Como generar una máscara de estrellas mediante el método clasico con AtrousWavelets es un proceso tedioso, he escrito un pequeño script que simplifica el proceso. El script intenta pillar todas las estrellas pequeñas y medianas, pero como contrapartida puede que quede algo de nebulosidad. El script funciona con imagenes estiradas.

Dejo el script en un archivo .zip.

Y tambien unas pruebas de una reducción de estrellas de la primera imagen que he pillado. Tres iteraciones de MT cada una con una máscara de estrellas generada por el script. (Mirar arriba)

Espero que sea util y me digais si se puede mejorar.

Saludos. Silvercup.

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: Classic Star Mask Script
« Reply #1 on: 2011 September 12 16:04:32 »
Nice and handy :) Thanks!

Offline jtheios

  • Newcomer
  • Posts: 20
Re: Classic Star Mask Script
« Reply #2 on: 2011 September 12 23:27:14 »
Works like a charm! Thanks so much.
-- John

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: Classic Star Mask Script
« Reply #3 on: 2011 September 13 04:55:10 »
Hola Silvercup, está buenisimo!, muchas gracias.
He notado que  al generar una segunda máscara no es igual que la primera, y las sucesivas quedan como la segunda.

Saludos, Alejandro.

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Re: Classic Star Mask Script
« Reply #4 on: 2011 September 13 06:55:07 »
Hola Alejandro:

Asegurate de cerrar la máscara o cambiar el ID de la misma. El script utiliza dos imagenes con los identificadores MaskView y AuxMaskView (esta ultima se cierra sola). Si MaskView esta abierta no se podrá rehacer la máscara.

Saludos. Silvercup



Hello Alejandro:

Make sure you close the mask or change the ID. The script uses two images with MaskView and AuxMaskView identifiers (this last one is self closed). If MaskView is opened you can not redo the mask.

Greetings. Silvercup

Offline jeffweiss9

  • PixInsight Old Hand
  • ****
  • Posts: 339
Re: Classic Star Mask Script
« Reply #5 on: 2011 September 14 21:00:20 »
Silvercup-
  Great script.  However, it retained a bit too much of my target's luminosity.  Is there a way to add a parameter to control that so it can be tweaked per image?
-Jeff
APM LZOS 130/780 f/6 LW CNC II APO, Riccardi 1.0 FF or 0.75 FF/FR, Tak EM-200 Temma2, FLI Microline ML-16200, Astrodon E Gen 2 filters and 5nm Ha, Orion 50mm Guider & Starlight Xpress Lodestar X2.

Offline jeffweiss9

  • PixInsight Old Hand
  • ****
  • Posts: 339
Re: Classic Star Mask Script
« Reply #6 on: 2012 January 10 19:58:30 »
Silvercup-
     I found this to be a great script but after substituting HDRMultiscaleTransform for the obseleted HDRWaveletTransform which was not left in for backward compatibility, it doesn't seem to work as well.  It seems to include much more of the nebulosity now.  Is there another change required other than the name substitution ?
Thanks,
-Jeff
APM LZOS 130/780 f/6 LW CNC II APO, Riccardi 1.0 FF or 0.75 FF/FR, Tak EM-200 Temma2, FLI Microline ML-16200, Astrodon E Gen 2 filters and 5nm Ha, Orion 50mm Guider & Starlight Xpress Lodestar X2.

Offline jeffweiss9

  • PixInsight Old Hand
  • ****
  • Posts: 339
Re: Classic Star Mask Script
« Reply #7 on: 2012 January 14 12:10:28 »
Actually, I retract the previous as the ClassicStarMask script is working just fine if you replace the HDRWaveletTransform occurrences with HDRMultiscaleTransform.   It invokes the HDR Wavelet Transform option of the HDRMultiscaleTransform process according to the Process Console.
-Jeff
APM LZOS 130/780 f/6 LW CNC II APO, Riccardi 1.0 FF or 0.75 FF/FR, Tak EM-200 Temma2, FLI Microline ML-16200, Astrodon E Gen 2 filters and 5nm Ha, Orion 50mm Guider & Starlight Xpress Lodestar X2.