Author Topic: Aperture Photometry Background Output  (Read 60 times)

Offline silentrunning

  • Newcomer
  • Posts: 22
    • View Profile
Aperture Photometry Background Output
« on: 2019 April 15 05:38:21 »
I have found that the AperturePhotometry script outputs a background model that can be used as an excellent artificial flat. Is this portion of the script available to be run seperatly as I don't need the plate solving and photometry functions for what I'm up to!

Many thanks

John

Online Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6537
    • View Profile
    • http://pixinsight.com/
Re: Aperture Photometry Background Output
« Reply #1 on: 2019 April 15 08:04:57 »
Hi John,

Actually, computation of accurate local background models is one of the reasons that explain why our AperturePhotometry script works so well and is so robust.

The local background model is just the residual layer of a multiscale median transform. Open the MultiscaleMedianTransform, select the desired number of layers, and disable all layers except the last one (the residual layer, labeled 'R'). Apply the process to a duplicate of your image to generate the local background model. The only critical parameter here is the number of layers. The more layers, the larger the scale of the generated background model. The MMT algorithm is outstandingly efficient to isolate structures, which makes it an ideal tool for these modeling tasks. I use it also internally in the LocalNormalization process with a similar purpose: to separate the additive (background) and multiplicative (scale, or slope) components of a linear function to model the difference between two images.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline silentrunning

  • Newcomer
  • Posts: 22
    • View Profile
Re: Aperture Photometry Background Output
« Reply #2 on: 2019 April 15 08:31:11 »
Fantastic, thanks Juan.