Page 1 of 3

Improvements to Live Stacking

Posted: Mon Jul 01, 2024 2:27 pm
by admin
Hi folks,

this week I have added some improvements to live stacking, with hopefully more to come over the next few weeks.

UnStack in Live Stacking

The first new thing is the 'Unstack' button which I have added
Screenshot 2024-07-01 150758.jpg
Screenshot 2024-07-01 150758.jpg (34.64 KiB) Viewed 4719 times
This button will remove the most recently added frame from the stack, allowing a frame that perhaps introduced a satellite or aeroplane trail to be eliminated. Unstacking a frame should be exact for 'Default' stacking, although it is not perfectly exact for 'Sigma Clipped' stacking. Unstacking is not available when using the Max Value/Meteor Detection stacking mode.

The unstack button becomes available when

* At least 2 frames have been added to the stack
* The most recent frame was aligned correctly and added to the stack
* SharpCap has not yet begun adding the next new frame to the stack.

You will notice it disable as SharpCap starts to process a new frame for stacking and then become enabled again once the processing is complete.

All feedback welcome - I realise it would be nice to be able to go back further into history and unstack a frame from longer ago - it's not impossible, but it is much more complex, so I thought that this would be a good starting point.

Live Stack auto-save options

This one is very simple - there are now settings in live stacking to allow you to control what stack formats are saved when the 'Auto Save' feature of live stacking happens.
Screenshot 2024-07-01 151930.jpg
Screenshot 2024-07-01 151930.jpg (19.12 KiB) Viewed 4719 times
By default, the ones shown above will be saved - 16 bit stack and with adjustments. You can customize this as needed.

Frame-to-Frame drift info

Finally, I've added some info to the live stacking drift graph that shows how much the image had drifted between the most recent frame and the one before that...
Screenshot 2024-07-01 152316.jpg
Screenshot 2024-07-01 152316.jpg (25.76 KiB) Viewed 4719 times
The range of values is because when there is some rotation included as well as just a linear offset, the distance varies from one part of the image to another. For good images, this value should generally be small when compared to the star FWHM value. I did some quick tests and a drift of 1/2 of the FWHM gave noticeably stretched stars, while a drift of less than 1/4 FWHM showed little distortion to star shape.

I am planning to improve this in a later update - perhaps a graph showing the drift size/direction in different parts of the frame and a warning if the drift is large compared to the FWHM.

Note that if a dither occurs between two frames then a high value would be expected (the value shows the size of the dither) and in that case it's not a problem...


cheers,

Robin

Re: Improvements to Live Stacking

Posted: Mon Jul 01, 2024 3:14 pm
by carlomuccini
Thank you!
All beautiful and very useful news!

Carlo

Re: Improvements to Live Stacking

Posted: Mon Jul 01, 2024 9:39 pm
by tentaclejoe
This is great! I could have used it this weekend :)

Re: Improvements to Live Stacking

Posted: Mon Jul 01, 2024 11:11 pm
by roelb
BIG THANKS

Re: Improvements to Live Stacking

Posted: Tue Jul 02, 2024 1:09 am
by mikenoname
admin wrote: Mon Jul 01, 2024 2:27 pm UnStack in Live Stacking
Thank you, thank you, thank you, thank you!!!

Hopefully I'll be able to get out and give it a good test in a few hours.

Watch, tonight will be the only night I won't be able to find a satellite. :)

Mike

Re: Improvements to Live Stacking

Posted: Tue Jul 02, 2024 4:07 am
by AstroChessPilot
There might be an issue with unstack and flip setting. In the preprocessing tab, I had Flip after dark/flat set to both, and did an unstack for a satellite trail. This was the result.
NGC5746_2024-07-01_T(21_46_03)_F6_E30.0s_TE180s_L_G250_O10_T0.0_WithDisplayStretch.jpg
NGC5746_2024-07-01_T(21_46_03)_F6_E30.0s_TE180s_L_G250_O10_T0.0_WithDisplayStretch.jpg (167.38 KiB) Viewed 4660 times

Re: Improvements to Live Stacking

Posted: Tue Jul 02, 2024 12:55 pm
by admin
Oooh, that looks like it is unstacking the unflipped frame rather than the flipped one. It might mean that other processing isn't happening on the unstack too - let me check that out.

cheers,

Robin

Re: Improvements to Live Stacking

Posted: Tue Jul 02, 2024 1:37 pm
by Gfischer
Robin,
Could you have this new unstack function automatically unstack when satellite trail detected?

Re: Improvements to Live Stacking

Posted: Tue Jul 02, 2024 5:58 pm
by admin
Hi,

hmm, interesting idea... Look at the *output* image from the stack (with stretch, etc) and if it has picked up a new, strong, linear feature, unstack the last frame... It might work, will have to do some testing.

I have just uploaded a new, updated, version that should fix the issue with unstack not coping properly with options set in the 'Preprocessing' controls (flip after dark/flat, flat frame, dark frame, basically the lot.) :oops: The code to do the processing before subtracting was there, but the *copy* of the original frame that it was using didn't have the processing data attached to it any more, so the processing code got called and did nothing because it thought there was nothing to do :(

Anyway, should be good now.

cheers,

Robin

Re: Improvements to Live Stacking

Posted: Tue Jul 02, 2024 9:18 pm
by Gfischer
Thanks Robin,
The “healing” of satellite trails now is great. Unfortunately sometimes it doesn’t quite get rid of trail.
Hope skies are clear out your way. Monsoon seasons starts now in Arizona