Author Topic: questions regarding calibration and integration of canon CR2 raw files  (Read 3360 times)

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
hi everyone,

two questions regarding calibration and integration of canon CR2 files:

because i have been lazy, i have not set a custom white balance in-camera for my clip-in CLS filter. however, dcraw seems to be able to figure out the white balance pretty well when told to ignore the camera's white balance info. for this reason i've been debayering the CR2 files using dcraw, and then calibrating, registering and integrating the files. i realize this is wrong - you are supposed to do the calibration on the raw, undebayered files. in order to do this i have to figure out my R,G,B scaling factors for the clip-in filter and fix the colors after integration. i will do this eventually.

when calibrating the debayered files, i've noticed that even though my dark temperature and exposure length are exactly equal to my lights, the dark scaling algorithm is coming up with scaling factors which are very far away from unity. it wants to scale the red channel by about 2x, and the green and blue channels by about 0.5x. is this just a symptom of having "done it wrong", or is it because of the MRS noise estimation failing on CR2 files? in other words, has dcraw totally screwed up the darks while debayering them because it has tried to compute a white balance on such "dark" data?

what will happen if i calibrate the un-debayered files? does the tool still try to compute scaling factors for each individual color in the bayer matrix, or is the image treated as greyscale? i'm worried that if somehow the scaling results in the debayered case are correct, the calibrated un-debayered files will be wrong since the red scaling seems to be ~4x the blue and green scaling.

thanks



Offline Christoph Puetz

  • PixInsight Addict
  • ***
  • Posts: 150
  • Peterberg Observatory (Germany, Saarland)
    • Fotos
Hello,

I had some similar questions some time ago. Juan gave me some very detailed
feedback in this topic.
http://pixinsight.com/forum/index.php?topic=1911.0

During this reply you first have to calibrate the images, then debayer and then align them.
I also work in this order and it is fine for me. For Debayering I use
the script of Ken Pendlebury.

Hope, this might be helpful for you,

Christoph
Kind regards,
      Christoph
---
ATIK 383L+, Canon EOS 450d, modified,
Canon EOS 500d, 
20" Planewave CDK, 6" APO Starfire Refractor,
Celestron 8", Skywatcher ED80,
Peterberg Observatory (www.sternwarte-peterberg.de)
PixInsight, PHD-Guiding
private URL: www.ccdsky.eu

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
thanks for the reply... in fact what i meant by "doing it wrong" is that i was doing it contrary to the instructions given in your post :)

at some point i am going to try this for myself to see what i can discover, but i was just concerned about the "excessive" scaling the red channel is getting in the 'wrong' flow. i wanted to see if juan had any comments about the noise estimation with respect to CR2 files and if this has anything to do with this.

it's okay with me if the answer is "don't debayer with dcraw and then calibrate, it's wrong." but since i did it that way it raised some questions for me.

Offline Christoph Puetz

  • PixInsight Addict
  • ***
  • Posts: 150
  • Peterberg Observatory (Germany, Saarland)
    • Fotos
Oh, sorry for the misunderstanding. In fact, these questions should be answered by the "gurus"  ;D
Clear Skies !
Kind regards,
      Christoph
---
ATIK 383L+, Canon EOS 450d, modified,
Canon EOS 500d, 
20" Planewave CDK, 6" APO Starfire Refractor,
Celestron 8", Skywatcher ED80,
Peterberg Observatory (www.sternwarte-peterberg.de)
PixInsight, PHD-Guiding
private URL: www.ccdsky.eu