Hi There,
I have a camera with HDR mode(dual gain->High gain and Low gain applied) and I was wondering how the Dark Wizard in Sharpcap was handling the
dual gain applied in HDR mode. I guess it does not create a frame for each High gain and Low gain value that are part of the HDR mode(dual gain) and combine them at the end?
Also, when using Dark Frame correction, how does it handle such HDR(dual gain) scenario? Does it apply the Dark correction at the pixel level where the High gain will be applied on the dark portion of the image and Low gain on the bright portion of the image?
I know that with PixelMath you can use the following expression to handle such scenario by check the pixel ADU value and apply the dark accordingly. This is if you took your dark frames at High gain and Low gain:
iif($T < 3600/65535,
($T - dark_hi) * mean(flat_hi) / flat_hi,
($T - dark_lo) * mean(flat_lo) / flat_lo
)
Thanks
Dark Capture/Correction and HDR mode
- admin
- Site Admin
- Posts: 17580
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Dark Capture/Correction and HDR mode
Hi,
there is no special handling for HDR in dark correction , and my instinct is that it is probably not a significant issue either.
My reasoning runs as follows...
Dark frames are captures at very low pixel values, so all the pixels in the dark frame will be in high gain mode for the dark measurements. Some of those pixels will have a large deviation, in which case SharpCap flags them has hot/cold pixels and the value gets substituted out as part of the dark correction (the pixel value from a neighbouring non-dark pixel of the same colour gets used instead). The rest will have small deviations, leading to a small correction offset.
When you come to correct a light frame, the pixel being corrected can be in either high or low gain mode. If it is in high gain mode, the correction is appropriate. If it is bright enough to be in low gain mode then the electron count will be significant (probably 1000 or more), so the shot noise will vastly exceed any slightly incorrect correction. The net result will be that the dark correction will do what it is supposed to (remove hot/cold pixels and reduce artifacts near the black level) and will have negligble impact in the brigher parts of the image.
Out of interest, do you have a source for the pixel value of 3600 that you are using in your formula? I haven't found that sort of detailed information in any manufacturer spec sheets or other documentation so far.
cheers,
Robin
there is no special handling for HDR in dark correction , and my instinct is that it is probably not a significant issue either.
My reasoning runs as follows...
Dark frames are captures at very low pixel values, so all the pixels in the dark frame will be in high gain mode for the dark measurements. Some of those pixels will have a large deviation, in which case SharpCap flags them has hot/cold pixels and the value gets substituted out as part of the dark correction (the pixel value from a neighbouring non-dark pixel of the same colour gets used instead). The rest will have small deviations, leading to a small correction offset.
When you come to correct a light frame, the pixel being corrected can be in either high or low gain mode. If it is in high gain mode, the correction is appropriate. If it is bright enough to be in low gain mode then the electron count will be significant (probably 1000 or more), so the shot noise will vastly exceed any slightly incorrect correction. The net result will be that the dark correction will do what it is supposed to (remove hot/cold pixels and reduce artifacts near the black level) and will have negligble impact in the brigher parts of the image.
Out of interest, do you have a source for the pixel value of 3600 that you are using in your formula? I haven't found that sort of detailed information in any manufacturer spec sheets or other documentation so far.
cheers,
Robin
-
lateralus35
- Posts: 16
- Joined: Fri Aug 11, 2017 1:28 pm
Re: Dark Capture/Correction and HDR mode
Hi Robin,
thanks for the replied. I took that code snippet from the following guide on astrobin:
https://www.astrobin.com/forum/c/equipm ... ost-202580
I'm trying to to calibrate my camera(HDR mode) using regular darks. I tested the master dark by stacking(in Siril) a set of darks as replacement for the lights(and applying dark correction) to see if my master dark would work properly. I guess in this case it should give me a almost perfect dark background even when stretched? The reason I've done that is that my new mount has not arrived yet so I cannot collect any lights. The result a badly corrected amp glow, some remaining hot pixels and some other gradient. Both darks(lights) and master dark were at the same exposure, temp, gain, offset. Although, the offset is not user changeable.
Having a hard time calibrating my camera(gpixel sensor) , I decided to try the above guide as the different gain applied in HDR mode could explain my results above. However, I'm missing some important value for the High gain and Low gain in HDR mode.
So, I ended trying to calibrate my camera in Sharpcap. What's funny is that if I use the Dark Frame capture wizard in Sharpcap it perfectly correct the background when applying dark correction(in Sharpcap). So I was wondering if you were doing something special.
Ultimately, the problem I'm facing with the HDR(dual gain) mode and this camera is not only with Darks but also with Flats.
thanks for the replied. I took that code snippet from the following guide on astrobin:
https://www.astrobin.com/forum/c/equipm ... ost-202580
I'm trying to to calibrate my camera(HDR mode) using regular darks. I tested the master dark by stacking(in Siril) a set of darks as replacement for the lights(and applying dark correction) to see if my master dark would work properly. I guess in this case it should give me a almost perfect dark background even when stretched? The reason I've done that is that my new mount has not arrived yet so I cannot collect any lights. The result a badly corrected amp glow, some remaining hot pixels and some other gradient. Both darks(lights) and master dark were at the same exposure, temp, gain, offset. Although, the offset is not user changeable.
Having a hard time calibrating my camera(gpixel sensor) , I decided to try the above guide as the different gain applied in HDR mode could explain my results above. However, I'm missing some important value for the High gain and Low gain in HDR mode.
So, I ended trying to calibrate my camera in Sharpcap. What's funny is that if I use the Dark Frame capture wizard in Sharpcap it perfectly correct the background when applying dark correction(in Sharpcap). So I was wondering if you were doing something special.
Ultimately, the problem I'm facing with the HDR(dual gain) mode and this camera is not only with Darks but also with Flats.
- admin
- Site Admin
- Posts: 17580
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Dark Capture/Correction and HDR mode
Hi,
thanks for the reference on the HDR mode in the Moravian camera - good to know that some manufacturers are providing this sort of technical detail.
Were you using PixInsight when you had difficulties with the dark correction not removing amp glow? I seem to recall that there is an innocuous looking tickbox in PixInsight - 'Optimize Dark Frames' or something similar. That gave a similar sort of problem with data from the old IMX183 cameras that had a lot of amp glow... With that optimizie option switched on, the darks simply failed to work properly and left most of the amp glow behind. Turning the optimization off fixed the issue. The checkbox is in the 'Master Dark' section of the Image Calibration process (and maybe elsewhere too, who knows).
Not sure if that will help.
cheers,
Robin
thanks for the reference on the HDR mode in the Moravian camera - good to know that some manufacturers are providing this sort of technical detail.
Were you using PixInsight when you had difficulties with the dark correction not removing amp glow? I seem to recall that there is an innocuous looking tickbox in PixInsight - 'Optimize Dark Frames' or something similar. That gave a similar sort of problem with data from the old IMX183 cameras that had a lot of amp glow... With that optimizie option switched on, the darks simply failed to work properly and left most of the amp glow behind. Turning the optimization off fixed the issue. The checkbox is in the 'Master Dark' section of the Image Calibration process (and maybe elsewhere too, who knows).
Not sure if that will help.
cheers,
Robin
-
lateralus35
- Posts: 16
- Joined: Fri Aug 11, 2017 1:28 pm
Re: Dark Capture/Correction and HDR mode
Hi Robin,
I was using Siril. There is similar option in Siril but I don't think it was selected when I applied the correction. I can successfully calibrate the camera when using the HCG mode so there is something going on with the HDR mode or I'm doing something wrong. I will take some new darks tonight and retest everything.
Thanks for your help.
I was using Siril. There is similar option in Siril but I don't think it was selected when I applied the correction. I can successfully calibrate the camera when using the HCG mode so there is something going on with the HDR mode or I'm doing something wrong. I will take some new darks tonight and retest everything.
Thanks for your help.