Author Topic: MaskGen  (Read 604 times)

Offline hvb356

  • Member
  • *
  • Posts: 55
    • View Profile
MaskGen
« on: 2019 June 17 23:59:01 »
Visitors of Herbert's wonderful www.skypixels.at know my new mask generator MaskGen. This tool needs an astrometric distortion corrected solution. One can create masks with variable diameter for stars up to mag 21.

Hartmut

Sent from my HUAWEI P20
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 610
    • View Profile
    • Astronomy Pages G.W.
Re: MaskGen
« Reply #1 on: 2019 June 18 10:15:38 »
Thank You Hartmut for this excellent tool!

I think its the only one available which REALLY creates "STAR"masks.
Because you are using the GAIA Catalog for creationg the stars.
All other so called "starmasktools" i know only create starmasks out of bright pixels in the image, 
no matter if they are stars, small galaxies, asteroids, hot pixels etc....

And ther possibility of creating/selecting  a starmask based on original star Magnitude is also a great help!

So, when creating a starmask -  if i want to keep the tiny galaxies and other nonstar objects i use your tool!

Again a great work.

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 191
    • View Profile
    • Skypixels - Astrophotography by Herbert Walter
Re: MaskGen
« Reply #2 on: 2019 June 18 23:08:49 »
Hi,

it is indeed a great script - I have tried it and am excited.

The image must be calculated astrometrically (ImageSolver) and after loading a catalog (Button Load catalog) you can create different masks.
A big advantage is that you can determine the number of stars the mask should contain (Mask magnitude range min/max).
You can also set the diameter of the stars in the mask (Star radii).
And as Gerald already mentioned, no problems with small galaxies, bright object areas, etc. - only stars!

Great!

Hartmut, you'll get special praise for that.  ;)

Best regards!
Herbert, Austria




The script is included in the Hartmut Repository and can be downloaded here - https://www.skypixels.at/pixinsight_scripts.html#MaskGen


Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6694
    • View Profile
    • http://pixinsight.com/
Re: MaskGen
« Reply #3 on: 2019 June 19 05:00:16 »
An interesting and well designed and implemented script. I see several potential issues for its practical application, but very nice work!

Some of these scripts deserve their inclusion in the official PixInsight distribution for sure. I don't know why this has not happened before—probably my fault. I have just invited Hartmut to join our team of collaborators at our official GitLab open-source repositories.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline rbotero

  • Newcomer
  • Posts: 34
    • View Profile
    • http://www.astrobin.com/users/rbotero/
Re: MaskGen
« Reply #4 on: 2019 June 19 05:39:04 »
This is an excellent tool!  It takes me sometimes 3+ masks before I am happy that I have included all the stars I wanted in my stark mask.  For areas with nebulosity and small galaxies in the background (that look like stars), it is sent from heaven!  >:D
Thank you!

Roberto

Offline hvb356

  • Member
  • *
  • Posts: 55
    • View Profile
Re: MaskGen
« Reply #5 on: 2019 June 19 23:42:51 »
Thanks all for comments on my latest work and thank you Juan for your invitation. I followed the link and joined GitLab. At next, I need some further guidance there.

Hartmut

TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline Russ

  • Newcomer
  • Posts: 15
    • View Profile
Re: MaskGen
« Reply #6 on: 2019 June 21 12:38:18 »
What an interesting tool! I've tried it on several images: about half the time, it works exactly as expected. With the other half, the script freezes and I get this message. Do you have an insight on what is happening?

*** Error [000]: /Applications/PixInsight/src/scripts/MaskGen.js, line 763: Error: Critical signal caught (11): Segmentation violation
PixInsight 01.08.06.1475 - Critical Signal Backtrace
Received signal 11 (SIGSEGV)
Module: 0   PixInsight                          0x000000010deb2382 InitializePixInsightModule + 1868482
================================================================================
  2: 1   libsystem_platform.dylib            0x00007fff5ed79b5d _sigtramp + 29
  1: 2   PixInsight                          0x000000010e1cd01c _ZTS6QBrush + 192
==========================================================================

Offline hvb356

  • Member
  • *
  • Posts: 55
    • View Profile
Re: MaskGen
« Reply #7 on: 2019 June 21 14:43:33 »
 Sorry, this kind of errors is beyond my scope. I do not want to rule out that the error lies in the method getPixels, which could be replaced by getSamples. Before doing so, I will try to find out the difference.
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline FrankW

  • PTeam Member
  • Newcomer
  • Posts: 20
    • View Profile
Re: MaskGen
« Reply #8 on: 2019 June 22 02:11:01 »
I suspected that there is a problem with the current PI version. With 01.08.06.1475 I get the same error message. Running the script with the same picture on 01.08.061457 everything works fine.