Live Stack with Flat Frame Bug?

A place to report problems and bugs in SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
Post Reply
BlackWikkett
Posts: 387
Joined: Sat Jun 23, 2018 8:48 pm
Contact:

Live Stack with Flat Frame Bug?

#1

Post by BlackWikkett »

Hello team

Been having some major issues trying to get flats working with Live Stacking. Not sure if this is bug in SC or bug in me. The big conundrum is when applying flat frames, created in SC with the "Capture Flat" tool, too Live Stack the defects such as vignetting and dust bunnies are made worse not better.

Using the flats tool i'm using 25 frames to make the master flat. I've tried creating flats with bias subtraction checked and unchecked. All flats are using the monochrome feature since i'm using a color camera. Using the tool I've tried making flats with lowest percentage histogram. Just when the flats tools reports "OK." Also put white channel in the middle of histogram and as far over to the right side without clipping any channels.

Using an LED tracing pad with T-shirt diffuser

RC6, AP CCDT67 reducer, ASI294MC Pro Camera Since the reducer allows variable back focus current spacing is setup to provide .757 reduction for FL of 1036 mm (native FL is 1368)

Below are images created in Live Stack with and without master flat applied.

Image00_03_56 by Black Wikkett, on Flickr
Master Flat Frame max histogram without clipping right side

ImageStack_19frames_285s_WithDisplayStretch by Black Wikkett, on Flickr
19 x 15 sec no flat applied

ImageStack_19frames_285s_WithDisplayStretch by Black Wikkett, on Flickr
19 x 15 sec with above flat applied

Live stack using sigma clipping, align frames, no enhancement, histogram auto stretch, AWB. Display histogram auto stretch
Tired with and without dark frames (dark frames are working as intended)
I've tried various master flats and all have the same result. So is this a bug or am i bugged? Am I expecting too much from flats or is this normal? I've included the log for SC below.

First encountered this on my main imaging PC. To rule the PC out the images above were captured on a different PC with fresh installation of SC 3.2.5871.0

-Wikkett

Log_2018-11-18T23_22_38-8828.log
(224 KiB) Downloaded 185 times
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Live Stack with Flat Frame Bug?

#2

Post by admin »

Hi,

did you use the option to subtract a bias frame when creating your flat frames, and if you did, did you make sure that you used the same offset/brightness/black level value when imaging as when capturing the flats. The result should be better if you use the bias frame as long as the offset/brightness/black level value matches. Certainly I wouldn't expect flats to do much for your far left hand bottom corner where the flat brightness is practically zero, but something is not quite right in the areas that look misty in the corrected stacked image.

Cheers, Robin
BlackWikkett
Posts: 387
Joined: Sat Jun 23, 2018 8:48 pm
Contact:

Re: Live Stack with Flat Frame Bug?

#3

Post by BlackWikkett »

Hi Robin,

Thanks for the response. I've tried creating flats with and without bias. I've tired with exact gain and offset used for lights, only difference for flats is exposure to get histogram correct.

I have clear skies scheduled for tonight and will attempt following your suggestion and test again. I'll also take individual flat images in mono and allow Deep Sky Stacker to create a master flat for use DSS stacking of individual frames. I'll reply with results tomorrow.

Thanks, Wikkett
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Live Stack with Flat Frame Bug?

#4

Post by admin »

Okay, thanks for putting all this effort into tracking down what the problem is. Please save the flat and dark frames as well as some of the individual light frames from your session this evening and then I can look at them if necessary to see if I can diagnose the problem in detail.

Cheers, Robin
BlackWikkett
Posts: 387
Joined: Sat Jun 23, 2018 8:48 pm
Contact:

Re: Live Stack with Flat Frame Bug?

#5

Post by BlackWikkett »

Hi Robin,

Completed testing last night and here are the results. First two sample images with description. Stayed with M45 for consistency.

ImageStack_20frames_600s.-PSEQUALIZE by Black Wikkett, on Flickr
Live Stack 20 x 30 sec 300 gain 20 offset using master flat with bias and master dark both created in SharpCap. This image has Equalize applied in Photoshop this brings out out all bugs. You can see vignetting not corrected and dust bunnies still visible

ImageM45_2018_11_20_DSS_SCDARK_SCFLAT-PSEQUALIZE by Black Wikkett, on Flickr
This image is 20 x 30 sec 300 gain 20 offset raw frames stacked in DSS using dark and flat master used in the above live stack image. Equalize applied in Photoshop. Vignetting is reduced and no dust bunnies are visible. Still not happy with the amount of vignetting remaining. Based on the ASI294 sensor size and the image circle that the AP CCDT67 should be illuminating at the back space I'm using. Not sure if I"m asking too much here?

Here's the link to Google Drive with all the files used to create these images
https://drive.google.com/drive/folders/ ... sp=sharing

For this round of testing I tried different flat created in SC but there was no change in the result. Please let me know if you need additional testing or more information about equipment or setups i'm using.

Thanks in advance if you get a chance to look into this!
-Wikkett
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Live Stack with Flat Frame Bug?

#6

Post by admin »

Hi,

thanks for the further info and the images I'm going to try and look at this over the weekend to see if I can work out what is going wrong. I do have a 294 sensor test with and an indoor lens I can use that vignettes on it somewhat. I expect I have a few dust specks on the sensor too! Out of interest do you have any views on whether the flat correction works correctly when not live stacking?

Cheers, Robin
BlackWikkett
Posts: 387
Joined: Sat Jun 23, 2018 8:48 pm
Contact:

Re: Live Stack with Flat Frame Bug?

#7

Post by BlackWikkett »

Heya Robin,

For the test I collected the darks via normal capture to folder. The flats I used the SC tool with bias and monochrome checked. In the tool I limited the capture to 1 frame. Did this 20 times. For the rest of the night I kept live stacking without dark and flat frames applied. used these individual raw frames and DSS & Photoshop.

Results here: viewtopic.php?f=16&t=1287

The above posts' images used the dark and flat frames used in the M45 test. Except for M42 used 8 sec dark library for that.

Flats seem to work to remove dust motes but doesn't remove the gradient in the vignetting but does soften it and I"m able to process it out in Photoshop.

Thanks, Wikkett
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Live Stack with Flat Frame Bug?

#8

Post by admin »

Hi,

I think I have found and fixed this problem, it was a combination of a number of small issues when both flat and dark correction was enabled with live stacking. There was also an issue with live stacking where the bias was doubled by mistake for a flat frame taken with bias and used without darks, which contributed to the confusion. All the fixes in the latest build which is now available for download, and as far as I can tell flat supply correctly in all the test cases I can think off both in live stacking and outside live stacking

Cheers, Robin
BlackWikkett
Posts: 387
Joined: Sat Jun 23, 2018 8:48 pm
Contact:

Re: Live Stack with Flat Frame Bug?

#9

Post by BlackWikkett »

Hi Robin,

Big thank you for finding an issue and fixing this. I've been playing around with calibration frames this weekend and I"m glad you found something in SC, was starting to question my sanity hehehehe. May have some clear skies Monday night (11/26?18) I'll give it a test on live data via live stacking.

-Wikkett
BlackWikkett
Posts: 387
Joined: Sat Jun 23, 2018 8:48 pm
Contact:

Re: Live Stack with Flat Frame Bug?

#10

Post by BlackWikkett »

Hi Robin,

Hope your doing well and on the why to recovery!

I've completed testing flats on the latest version 3.2.5879.0. Below are the results of my testing. TLDR: unfortunately we still have a problem, details follow.

Equipment: RC6, AP CCDT67 reducer, ASI294MC Pro, IDAS D1 filter. Added a few more millimeters to spacing between the reducer and camera. The following images at 1.02 arcsec/pixel, FL 936 mm, F 6.2, reducer is providing .682 reduction max is .67.

For all images below if you follow the link to flickr you'll find the CamerSettings.txt attached to each image.

Now for a bit of good news! I've been doing a lot this testing live on https://www.nightskiesnetwork.com/ I've had heaps of help from many of the more experienced astro-imagers there. One suggestion was to create flats outside of SharpCap then use this master flat in Live Stack, this produced positive results! Used ZWO ASICAP to capture 59 raw fits. In ASICAP used auto white balance, exp was max histogram without clipping anything. Of note is that these are color images and the resulting flat is also color. Used Astro Toaster http://www.astrotoaster.com/ to create the master flat. Astro Toaster uses Deep Sky Stacker, basically a live stacking front end for DSS. This generated a master flat tif file.

The following images were created in Live Stack. Used auto stretch, auto white balance in stacking and display histogram. Fine tuned the stretch and color balance to achieve best star color and bring out nebulosity. Now on to my most imaged object my dear friend M 45.

ImageM45 Stack_10frames_300s_WithDisplayStretch by Black Wikkett, on Flickr
SC very bright flat and dark from library, image train was cleaned so don't see any dust but vignetting is evident

ImageM45 Stack_22frames_660s_WithDisplayStretch by Black Wikkett, on Flickr
SC dim flat and dark from library

ImageM45 Stack_90frames_2700s_WithDisplayStretch by Black Wikkett, on Flickr
SC very bright flat and dark from library, let run longer to see if we could get positive result

ImageM45 DARK ONLY Stack_13frames_390s_WithDisplayStretch by Black Wikkett, on Flickr
only using latest dark from 11/20 no flat applied

ImageM45 ASICAP Flat Stack_15frames_450s_WithDisplayStretch by Black Wikkett, on Flickr
ASICAP / Astro Toaster Flat and 11/20 dark Best result yet and my current work around. Fairly flat but some gradients.

Once I had the positive result above moved to some different objects

ImageC49 Rosette Nebula Stack_72frames_2160s_WithDisplayStretch by Black Wikkett, on Flickr
ASICAP / Astro Toaster Flat and 11/20 dark

ImageIC63 y Cas Nebula Stack_101frames_3030s_WithDisplayStretch by Black Wikkett, on Flickr
ASICAP / Astro Toaster Flat and 11/20 dark used wrong gain for 450 in this one so dark didn't remove all the amp glow.

As you can see we have a work around but would love to have SC working. I'm not at may imaging site so don't have the new master flat .tif that has worked but will upload it once I have access to it. Not sure what to try next but I'm at your disposal to conduct further testing. Let me know if there's anything you'd like to my try or any information you need.

Thanks for all you do
-Wikkett
Post Reply