Login  Register

Re: Extracting green channel from FITS

Posted by han.k on Mar 04, 2022; 4:57pm
URL: http://astroimagej.170.s1.nabble.com/Extracting-green-channel-from-FITS-tp1750p1837.html

Hello Karen,

I have created a total of 9 test images for all possibilities. Tested them in ASTAP, Siril and CCDCiel programs. Debayering in all programs gave the same result. Testing in PixInsight gave the same pattern except for the files with the keys XBAYROFF  or YBAYROFF unequal to zero.

All have a BAYERPAT='RGGB' defined in the header.

The nine test files:
bayer_test_version5.zip

The files are:
bayer_test_pattern v5 16 bit.fit
bayer_test_pattern v5 row order is top-down 16 bit.fits
bayer_test_pattern v5 roworder is bottom-up 16 bit.fits
bayer_test_pattern v5 roworder is bottom-up, xbayroff=0, ybayroff=1, 16 bit.fits
bayer_test_pattern v5 roworder is bottom-up, xbayroff=1, ybayroff=0, 16 bit.fits
bayer_test_pattern v5 roworder is bottom-up, xbayroff=1, ybayroff=1, 16 bit.fits
bayer_test_pattern v5 roworder is top-down, xbayroff=0, ybayroff=1, 16 bit.fits
bayer_test_pattern v5 roworder is top-down, xbayroff=1, ybayroff=0, 16 bit.fits
bayer_test_pattern v5 roworder is top-down, xbayroff=1, ybayroff=1, 16 bit.fits

In colour with RGGB defined they should all display:


When extracting the both green sensitive pixels it should display:



This should help to debug. The files will be useful for future testing, so making them was not a problem for me.

Hope this helps, Han