British Astronomical Association
Supporting amateur astronomers since 1890

Secondary menu

Main menu

Home Forums Imaging
Terms of use

Converting DSLR images to FITS

8 posts / 0 new
Last post
Offline
Last seen: 16 hours 40 sec ago
Joined: 05/03/2014 - 10:05
Converting DSLR images to FITS

Having converted a DSLR image to FITS, calibrated it and extracted the green channel I was checking for saturated pixels using the AIP4WIN Star image tool. On a bright star I could see from the flat top on the shape of the image that some pixels were saturated. The Peak Pixel Value was given as 39997 but my understanding is that the max pixel value for my images (obtained with a Canon EOS550D DSLR camera) is 16384 so I am confused by this result.

Any ideas anyone?

Regards

callump's picture
Offline
Last seen: 10 hours 26 min ago
Joined: 03/01/2014 - 12:25
Calibration process?

Hi Roger,

what was the calibration process used - perhaps there was some normalisation along the way...

Cheers, Callum

Offline
Last seen: 16 hours 40 sec ago
Joined: 05/03/2014 - 10:05
DSLR Calibration process

Hi Callum,

Thanks for your interest. My proces is (using AIP4WIN);

1) Convert camera images and calibration frames to FITS

2) Calibrate (using dark frames, flat fieldsand flat darks)

3) Extract the green channel (which I then process with Astrometrica for astrometry and photometry)

Regards

Offline
Last seen: 16 hours 40 sec ago
Joined: 05/03/2014 - 10:05
Further to my query. In

Further to my query. In AIP4WIN Bayer conversion settings, DeBayer, Convert Colour to Grayscale I set Red Scale=Blue Scale =0 and Green Scale =1, opened a RAW camera image and saved it as FITS. Using Measure/Statistics the max value = 15305. 

I then set Red=Blue=Green=1 and opened and saved an image as above. The max value was then given as 45915 which is 3x the 15305 obtained previously (A calibrated image has a max value of 40471.8).
 
Are the red, green and blue channels being added?
 
Regards 
Offline
Last seen: 16 hours 40 sec ago
Joined: 05/03/2014 - 10:05
DSLR Astrometry and photometry

A reply from Richard Berry on the AIP4WIN forum, below, confirmed the point I made in my 2016-07-04 post;

Yes, they are added. This avoid any integer roundoff.
If you want to, you can use Red=Grn=Blu=0.33333.

I quickly tried his suggestion using an uncalibrated image and it seemed to work. What I need to do now is use this method to calibrate an image and see what results I get in Astrometrica.

Robin Leadbeater's picture
Offline
Last seen: 8 hours 11 min ago
Joined: 05/03/2014 - 00:50
DSLR RGB

Hi Roger,

I am not that familiar with AIP4WIN but it works this way in IRIS. In IRIS, if you want the dynamic range of the combined channel (greyscale) image to be the same as for a single channel, either the multipliers for the three channels have to add up to 1 or the resulting image has to be normalised (The multipliers allow the white balance to be set correctly)

Cheers

Robin

Offline
Last seen: 16 hours 40 sec ago
Joined: 05/03/2014 - 10:05
DSLR astrometry and photometry

Hi Robin,

Thanks for your reply. I understand what you are saying about the multipliers (same as Adrian Berry I guess). 

Regards

nickjames's picture
Offline
Last seen: 21 hours 54 min ago
Joined: 12/10/2013 - 18:16
The 550D CR2 raw format is

The 550D CR2 raw format is indeed 14-bits per pixel (i.e. 0 - 16384) but the processing for extracting the green channel from the two green pixels of Bayer colour array adds an arbitrary scaling probably due to the interpolation required. A simple scaling doesn't really matter since you do the photometric calibration after extracting the green channel.

Most of the non-Canon software in use uses functions based on dcraw to do this coversion so you can have a look at the source code if you are interested!