Updating to match new version of source page |
Updating to match new version of source page |
||
(9 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
'''This keyword is | '''This keyword is <tt>ROWORDER</tt> of type <tt>TSTRING</tt>. It can take two values: <tt>BOTTOM-UP</tt> and <tt>TOP-DOWN</tt>.''' | ||
Line 23: | Line 23: | ||
==Software using this keyword== | ==Software using this keyword== | ||
* Siril (since version | * Siril (since version 0.99.4) | ||
* CCDCiel (since version 0.9.72) | * CCDCiel (since version 0.9.72) | ||
* Indi (since [https://github.com/indilib/indi/commit/176173ed51ec2086657eb8881c67b335fc570b34 2020]) | * Indi (since [https://github.com/indilib/indi/commit/176173ed51ec2086657eb8881c67b335fc570b34 Jul. 2020]) | ||
* KStars (since 3.4.3 | * KStars (since 3.4.3) | ||
* SharpCap (since version 3.3) | * SharpCap (since version 3.3) | ||
* FireCapture (since version 2.7) | * FireCapture (since version 2.7) | ||
* N.I.N.A (since version 1.10) | * N.I.N.A (since version 1.10) | ||
* MaxImDL (since version 6.23) | * MaxImDL (since version 6.23) | ||
* INDIGO (since [https://github.com/indigo-astronomy/indigo/commit/7ae5cbd10c06e705a52398d402d8800dd92bee57 Jul. 2020]) | |||
* PixInsight (since version 1.8.8-6) | |||
* ASTAP (since version ß0.9.391) | |||
* APT (since version 3.86.3) | |||
* AstroDMx Capture (since version 0.80) | |||
* Astroart (since version 8.0) | |||
==Retrieving the Bayer matrix== | |||
Image row order changes the way the Bayer matrix should be read, but there are also two optional FITS header keywords that have an effect on this: <tt>XBAYROFF</tt> and <tt>YBAYROFF</tt>. They specify an offset to the Bayer matrix, to start reading it on first column or first row. | |||
To help developers integrating the <tt>ROWORDER</tt>, <tt>XBAYROFF</tt> and <tt>YBAYROFF</tt> keywords in their software, some test images were created by Han Kleijn from [https://www.hnsky.org/ hnsky.org], one for each combination of the three keywords. Download them here: [[File:Bayer_test_pattern_v6.tar.gz]]. |
Latest revision as of 12:48, 8 March 2022
Orientation of FITS images
The FITS standard is a container that describes how to store image data and meta-data. Professional tools, from the early age of the FITS format, like ds9 (Harvard Smithsonian Center for Astrophysics), fv (FITS viewer from NASA), store images bottom-up. We might be tempted to say that it does not really matter, but when demosaicing or astrometry is involved, problems arise. For example, the usual RGGB Bayer pattern becomes GBRG if the image is upside-down.
Nowadays, despite this, most camera drivers are writing data in the top-down order and we have to cope with it.
For these reasons, we recently have introduced, together with P. Chevalley of CCDCiel, a new FITS keyword. We encourage all data producers, INDI and ASCOM developers, to use it in order to make things easier for everybody.
This keyword is ROWORDER of type TSTRING. It can take two values: BOTTOM-UP and TOP-DOWN.
Siril will always read and display images in the bottom-up order, however if the top-down information is specified in the keyword, then Siril will demosaic the image with the corrected pattern.
Why would some programs write images bottom-up in the first place? The reason is: mathematics do it that way.
Also, the FITS specification says:
5.1. Image display conventions It is very helpful to adopt a convention for the display of images transferred via the FITS format. Many of the current image processing systems have converged upon such a convention. Therefore, we recommend that FITS writers order the pixels so that the first pixel in the FITS file (for each image plane) be the one that would be displayed in the lower-left corner (with the first axis increasing to the right and the second axis increasing upwards) by the imaging system of the FITS writer. This convention is clearly helpful in the absence of a description of the world coordinates. It does not preclude a program from looking at the axis descriptions and overriding this convention, or preclude the user from requesting a different display. This convention also does not excuse FITS writers from providing complete and correct descriptions of the image coordinates, allowing the user to determine the meaning of the image. The ordering of the image for display is simply a convention of convenience, whereas the coordinates of the pixels are part of the physics of the observation.
Software using this keyword
- Siril (since version 0.99.4)
- CCDCiel (since version 0.9.72)
- Indi (since Jul. 2020)
- KStars (since 3.4.3)
- SharpCap (since version 3.3)
- FireCapture (since version 2.7)
- N.I.N.A (since version 1.10)
- MaxImDL (since version 6.23)
- INDIGO (since Jul. 2020)
- PixInsight (since version 1.8.8-6)
- ASTAP (since version ß0.9.391)
- APT (since version 3.86.3)
- AstroDMx Capture (since version 0.80)
- Astroart (since version 8.0)
Retrieving the Bayer matrix
Image row order changes the way the Bayer matrix should be read, but there are also two optional FITS header keywords that have an effect on this: XBAYROFF and YBAYROFF. They specify an offset to the Bayer matrix, to start reading it on first column or first row.
To help developers integrating the ROWORDER, XBAYROFF and YBAYROFF keywords in their software, some test images were created by Han Kleijn from hnsky.org, one for each combination of the three keywords. Download them here: File:Bayer test pattern v6.tar.gz.