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

Offline silentrunning

  • Newcomer
  • Posts: 30
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

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • 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: 30
Re: Aperture Photometry Background Output
« Reply #2 on: 2019 April 15 08:31:11 »
Fantastic, thanks Juan.