Author Topic: proper use of CanonBandingReduction  (Read 5837 times)

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
proper use of CanonBandingReduction
« on: 2011 January 07 10:35:28 »
first off, thanks to georg for coding this script. it really works wonders on images from my canon 50d, which exhibits vertical banding.

i do have some questions about proper use of this script.

from experimentation (and reading the development thread), the script seems to work best when the images are gradient-free. this makes sense considering how it works. i think this means that mean you should not run the script on calibrated subexposures which contain gradients (as all of mine do). that would also be very time-consuming and i'm not sure it's possible to automate that (without writing another script that repeatedly calls georg's script. and in my case the new script would have to rotate the images first.). however, this method would seem to be the most direct solution to my problem, outlined below.

the other option is to apply the script to an integrated image which has gone through DBE. no problem... except that in my case, i usually have 3-4 nights worth of data, and my pointing is never exact enough from night to night. this means that the integrated stack will have several rotation angles, and as such the banding is superposed over itself at different angles. this makes the script's job impossible. i suppose that if you have enough nights with different rotation angles then the banding could be rejected as noise, but so far i still see the banding in the final integrated image.

one way to handle this would be to keep track of all the rotation angles in the stack, and then after stacking everything together, go in and apply the script, then rotate to the first angle, apply the script again, and so on. i have not tried this. not sure how well this would work, as the angled banding will have 'holes' cut through them from the prior applications of the script.

what i have been doing is not good either - i've been stacking each night's work, applying DBE, applying the script, and then registering and integrating together all the fixed stacks from each night. this leaves me with a banding-free final image, but it usually has some new, weird gradients which are the effect of imperfect DBE on the sub-stacks. also now i'm stacking stacks which do not have the same exposure time and thus have different SNR, but i suppose pixinsight is the right tool to be using in this situation due to the weighting by noise feature. but the main problem is, i have not been entirely successful at eliminating the gradients from the final stacks.

does anyone have more ideas on how to apply this script in this situation? thanks.



Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: proper use of CanonBandingReduction
« Reply #1 on: 2011 January 07 11:38:10 »
Hi,

I am glad you find the script useful.

So far, I have usually applied CanonBandingReduction to stacked and DBEed images. I have done some experiments with applying CanonBandingReduction to calibrated light frames before doing the stacking (in the hope to get less banding noise, and thus better estimates for the weights used by ImageIntegration and fewer outliers), but I feel the results were not visibly better.

I played with the idea to apply the procedure directly to the .CR2 files - the idea being that this is the place where the banding originates. However, this would require that the script knows how to handle RAWs that are not yet debayered (the three channels need to be handled seperately), and this is something the script cannot do yet (feel free to extend it). There should be a benefit for darks, bias and maybe flat frames. But I am not so sure about the effect on light frames with gradients (I also have the problem of gradients (living near Munich Germany means that I see all the light of that town)).

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

astropixel

  • Guest
Re: proper use of CanonBandingReduction
« Reply #2 on: 2011 January 07 19:15:54 »
I updated the firmware on my 1000D and this has eliminated the strong vertical bands. Now the noise looks more uniform horizontally and vertically.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: proper use of CanonBandingReduction
« Reply #3 on: 2011 January 08 09:45:55 »
thanks for the replies.

i checked all the angles of my subs and found them to fall into 4 rotation groups. (0,-0.16,-0.18), -0.51, +0.59, +0.95 i aligned everything to the largest group and integrated all 180 images (!), and then i did the banding reduction. that took care of most of it, but there was still a little more, so i rotated the frame by the amount needed to get the 2nd group banding to be horizontal and ran the script again. the results were okay, but i think i did introduce some artifacts into the image, and a heavy stretch shows that there's more banding evident, probably from the 2 uncorrected groups.

i guess i'll integrate these groups separately, do the DBE on each of them followed by the banding reduction and integrate the results for comparison. that's going to take me a while though...

astropixel: i have a 50d and i think it's up-to date as far as firmware is concerned (1.0.6 IIRC). i needed to do some shorter subs for HDR work and i noticed that there is horizontal banding way down in the noise, but my subs are long enough to overcome that banding easily. however, above that, there's vertical banding which is evident in low-signal areas. i am using a CLS filter which attenuates blue light quite a bit and sure enough most of the banding is in the blue channel. i think perhaps if i went to a longer subexposure length or went to a dark sky site and removed the filter that i might be able to get above that noise. on the other hand if the banding has a thermal component then longer subs might make it worse.

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: proper use of CanonBandingReduction
« Reply #4 on: 2011 January 10 02:22:13 »
I updated the firmware on my 1000D and this has eliminated the strong vertical bands. Now the noise looks more uniform horizontally and vertically.

Firmware updates did not help for my 40D  :'(

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

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: proper use of CanonBandingReduction
« Reply #5 on: 2011 January 10 05:32:03 »
Astropixel....which version of firmware did you update to? I am wondering which one makes the difference as I've just acquired a 1000D.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: proper use of CanonBandingReduction
« Reply #6 on: 2011 January 10 14:10:14 »
by the way, i went back and stacked each night individually and then stacked the sub-stacks. the result is much better as almost all of the banding was eliminated this way. noise evaluation on the two methods bears it out; the noise is lower in the stack of sub-stacks.

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: proper use of CanonBandingReduction
« Reply #7 on: 2011 January 12 11:28:43 »
On the image rotation thought for the CanonBandingReduction/CBR Utility.  I’ve been working with IC, trying to reduce the noise  of my 90-sec @ iso1600 subs taken with my modified Canon T1i.  After having some success with IC and getting better integration ( less noise ) I found that I still had vertical lines and horizontal gradients. After reading pfiles thoughts on rotation,  I tried rotating the linear  master 90 degrees and running CBR for the vertical lines and then rotating the file back 90 degrees and removing the horizontal gradients, works great.  Georg, thanks for this Utility.
Cleon
PS I have the camera mounted on a 10" RC, mounted on a EG-G mount, trying to image when a mag 4 star is difficult to see...
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: proper use of CanonBandingReduction
« Reply #8 on: 2011 January 12 14:08:25 »
...Georg, thanks for this Utility...
You are welcome   :)
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)