Author Topic: DSLR_RAW/CR2 file to .fit  (Read 3490 times)

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
DSLR_RAW/CR2 file to .fit
« on: 2010 September 18 07:23:36 »
When I use the BatchFormatConversion Util; why do I have to set the brightness level to 4.2 in the DSLR_RAW format preferences, to get the camera's (Canon T1i) chip  clipped stars to = 1.0 in the .fit file?
Cleon
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: DSLR_RAW/CR2 file to .fit
« Reply #1 on: 2010 September 18 08:40:58 »
Hi Cleon,

the DSLR cameras digitize with a resolution of 12 bits, and the newest to 14 bits. When you read the RAW file, you put each pixel value in 16 bit format *inside* PixInsight (ok, I know this is not the correct terminology). So each pixel value can be in the [0,65535] interval, but the camera raw image (in the particular case of your camera) has only values between [0,16383]. This means that you are employing only 25% of the dynamic range of the 16 pixel bit depth. So your saturated stars will be at 0.25 value (0=black; 1=white).

If you modify the RAW format preferences to have a brightness of 4, you are multiplying each pixel value by 4. So you will be expanding your pixel values to the [0,65535] range. This doesn't means that you have now better numerical precision. It simply means that you are multiplying your pixel values by a scale factor.

It doesn't matter if you do this multiplication. Only remember two things:

- Do it always with the same scale factor. Just remember that you were using 4.
- Don't use values above 4, because you will be clipping pixel values (those that exceed the 65535 value after multiplying by the factor.


Best regards,
Vicent.

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: DSLR_RAW/CR2 file to .fit
« Reply #2 on: 2010 September 18 13:43:10 »
Vicent, thanks for the explanation. When I use 4.0 multi I get a 0.986 star pix value in the Bayer .fit file. When I Cal this file with a Bias and a Flat made with the 4.0 multi I get a _c.fit file with a 0.922 star pix level, then I Debayer this file and get a 0.9345  star pix level with an ave. dark area level of around 0.003 for R>G>B>  for the blk level.
Cleon
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod