Alejandro, I’m glad Craig’s article helped you understand the DeBayer process. The process takes a Bayer matrix, ((which is created by placing a Color Filter Array (cfa) RGGB filter in front of each set of four pixels of the Camera’s monochrome CCD chip)) and creates four color pixels from four monochrome pixels. The sampling of 4 pixel levels, the four adjacent pixels next to this pixel,(nearest neighbor) sets the color for the created pixel. I think this is Bilinear decoding, RGGB.
When you look at one of my Debayered HotPixels, note that the four pixels (the four leaf clover) connected to the HotPixel are being created by the DeBayer process, seeing one bright green pixel and three dark pixels (group of four) next to the pixel that is being created. These four created phantom pixels (the clover leaf) have a ADU level of 0.25 while the HotPixel in the middle has a ADU level of 1.0.
A SuperPixel file can also be created with the BatchFormatConversion script and is 1/2 the pixel size of the original file, using the four RGBG pixels to create one pixel, but is not Debayered, this file can be Debayered. This gets very confusing..check this Web site out.....
http://www.licha.de/astro_article_ccd_camera_bayer_matrix.phpBatchFormatConversion uses settings from the Format Explorer tab and in the case of the DSLR_RAW files, uses settings in the RAW Format Preferences window to create the new file format.
When you Calibrate a DSLR raw file a FormatConversion happens and the conversion uses Raw Format Preference settings.
I hope this simplistic explanation helps, I still think there's some magic involved. LOL
Cleon