The global settings in Format Explorer/DSLR_RAW (respectively: the input hints in certain Pixinsight processes - they will overrule the global settings!), determine how the raw photo (e. g. a *.CR2 file)
- is tranformed by the Raw Photo Decoder (Pixinsight uses 'dcraw' for decoding the raw photos),
- is represented on the screen, in memory or on disk if you save the data to a file subsequently.
When opening a raw photo (e. g. a *.CR2 file) the settings in DSLR_RAW (respectively: the input hints) are passed on to dcraw in a suitable form. dcraw decodes the photo and supplies the data: a header that contains some metadata and a matrix (dimensions: width x height) with grayscale intensities of the sensor's pixels. dcraw has numerous possibilities to alter the data (scaling, white balance, etc.). So it must be advised to keep its hands off, if we want to do a correct preprocessing. You must be aware that this matrix is yet monochrome data that contains the structure of the Bayer matrix (e. g. RGGB). Therefore it is not an image in the conventional meaning.
How Pixinsight represents this matrix is also determined by the settings in DSLR_RAW (respectively: by the input hints). When choosing "Create raw Bayer CFA image" the representation is as grayscale "image", when choosing "Create raw Bayer RGB image" the representation is as RGB "image" (I set
Image in quotation marks because of the still inherent Bayer matrix.). The RGB "image" represents the same contents and roughly occupies threefold the disk space of the CFA "image". So I recommend to set "Create raw Bayer CFA image".
The preprocessing is done with data in that format (inherent Bayer matrix). After preprocessing but
before registering and integrating we have to get rid of the Bayer matrix. The process of "debayering" converts the grayscale "image" to a real RGB image.
There is one point that has been subject of a discussion some time ago ("DSLR_Raw Settings: CFA or not", topic 2362.0). Juan Conejero then stated:
Monochrome CFA images will work nicely and you're right with just one exception: dark frame optimization. Dark scaling will be more accurate with RGB Bayer images because an independent scaling factor will be computed for each channel. With a monochrome CFA, only one scaling factor will be computed as an "average" for the three channels, which also will work, but less accurately. Whether there are practical differences in the final calibrated images depends on the images TM
Note that this is actually a limitation of our dark optimization routine, due to the fact that it has been designed to work with each channel as an independent image (which is what they are for calibration purposes). I'll try to implement a special routine to compute independent RGB scaling factors from monochrome CFA images as soon as possible. When that happens, then there will be no reason to calibrate with RGB Bayer images anymore.
I don't know whether the dark frame optimization routine was adjusted since that time. Maybe anybody else can clarify this yet?
Bernd