Author Topic: Combining long and short exposures of an object  (Read 4846 times)

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Combining long and short exposures of an object
« on: 2009 August 19 07:25:25 »
Sometime one may find that a long exposure is in general good but parts of the image may be over exposed and burned out.  For instance a 600 sec exposure of a bright galaxy may have good signal of the arms and the star field but the core may be burned out.  So if one adds data from a 60 second exposure the definition of the core becomes apparent.  My question is, if you have two master luminance frames of the same object but different exposure times what is the best method to combine these master frames.  The result would then be used with other masters  (R,G,B) to improve the resolution of the core.  Thanks in advance.
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Combining long and short exposures of an object
« Reply #1 on: 2009 August 19 08:37:01 »
What I have read and makes sense to me is to normalize the long-duration frame to the short-one. So if your short-duration is 60-second and your long duration is 600-second, you then divide all pixels of the long-duration frame by 10. Then you can combine both frames (after they themselves are corrected for dark, etc...) In this way you do not emphasize noise.
Doing the reverse, multiplying the short-duration frame by a factor of 10 would boost the random (and other) noise in that frame.
Now, of course, you may also want to mask any area of the long-exposure frame that are over-exposed as an additional step but I have never performed it myself.
Philip de Louraille

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: Combining long and short exposures of an object
« Reply #2 on: 2009 August 19 09:03:49 »
Phillipe  This might work however would you not be reducing the signal in the long exposure by division by 10?

I have continued to investigate this issue and looking at image integration see some options that might work but not sure (Juan et al?).  FIrst in Image integration combine with Average but in normalization use adaptive + scaling and in Weights use Exposure time?  Then there is the option to select a Region of Interest whereby I think you could just define the area of the core of a galaxy???
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Combining long and short exposures of an object
« Reply #3 on: 2009 August 19 09:49:30 »
Isn't this kind of combination supposed to be done by the HDRComposition script provided with PI?

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: Combining long and short exposures of an object
« Reply #4 on: 2009 August 19 10:05:06 »
I believe you are correct and I tried it with the images I was working with and it error a couple times with a "out of range"???  When I got it to work I found I could not stretch the hdr image.  Use of the white point or gamma did not alter the size of the data spike in the histogram window and after many iterations I still have no visible image?
« Last Edit: 2009 August 19 10:13:11 by Jharvey »
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Combining long and short exposures of an object
« Reply #5 on: 2009 August 19 10:07:15 »
Hi Jack,
yes you will be reducing signal (and noise) of the long-exposure frame. But your resulting frame (after combining the short- and scaled-long- exposures) should consist of "linear" data. Which you will boost later.
What you propose seems (to me) that your input frame will not consist of linear data - and I'll add that I am agnostic on that. If your planned output is for the beauty of the picture then a non-linear input frame is not that critical. If, however you plan on getting some scientific data out, I would think you would want a normalized frame as input.


Philip de Louraille

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: Combining long and short exposures of an object
« Reply #6 on: 2009 August 19 14:43:53 »
There is some discussion I found here also  http://pixinsight.com/forum/index.php?topic=1303.0
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: Combining long and short exposures of an object
« Reply #7 on: 2009 August 20 07:09:13 »
Yes, the HDRComposition script does this. Remember that it converts all the images to 64 bit before dividing any signal levels by 10...or whatever factor it needs to. So with 64 bits to play with there is no rounding errors or increase in noise level. And the script really is intended to work with flat, calibrated, linear images.

However, whenever I try to use it, it reports 'Error - Out of Memory'. Which is a great shame because I think this is potentially a really powerful / useful script.

Cheers
         Simon

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Combining long and short exposures of an object
« Reply #8 on: 2009 August 21 07:05:04 »
I used that script on M42 last year but haven't since. It should do exactly what you're asking for Jack.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity