(a bit of documentation)
Line 3: Line 3:
=Siril color compositing tool=
=Siril color compositing tool=


Main features:
* Load any single-channel image with a format supported by Siril
* Any colour can be associated with a layer, using either a pre-defined palette, a user-defined colour, or a wavelength from a filter list or a text field for true-colour compositions
* Luminance-based (like LRGB) or colour-based (like RGB) compositions
* Handling binned images for any layer
* Automatic alignment of the layers' images, using Siril registration methods (currently FWHM or DFT)
* '''Soon:''' any number of layers, for now fixed to 3 colours
==Image with different sizes or binned==
Images of different size can be composited, which is often required with LRGB when the L image is very detailed and RGB images are binned to acquire faster. To handle the different image sizes, Siril resizes the smaller images to the size of the largest image, using a [https://en.wikipedia.org/wiki/Lanczos_resampling Lanczos resampling] with [http://docs.opencv.org/modules/imgproc/doc/geometric_transformations.html#void%20resize(InputArray%20src%2C%20OutputArray%20dst%2C%20Size%20dsize%2C%20double%20fx%2C%20double%20fy%2C%20int%20interpolation) OpenCV].
Images of different size can be composited, which is often required with LRGB when the L image is very detailed and RGB images are binned to acquire faster. To handle the different image sizes, Siril resizes the smaller images to the size of the largest image, using a [https://en.wikipedia.org/wiki/Lanczos_resampling Lanczos resampling] with [http://docs.opencv.org/modules/imgproc/doc/geometric_transformations.html#void%20resize(InputArray%20src%2C%20OutputArray%20dst%2C%20Size%20dsize%2C%20double%20fx%2C%20double%20fy%2C%20int%20interpolation) OpenCV].
==True colour images==
The composition tool includes a method that converts a wavelength in the atmosphere to a colour. It is based on the Bruton method, described [http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm here]. The approach is empirical, there is not only one mapping between a wavelength and an RGB colour.
This graph gives an idea of how it's done:
[[File:Rgb.gif|center]]

Revision as of 00:58, 30 May 2014

Siril features a powerful layer compositing tool. It was initially created to compose RGB and LRGB images from 3 or 4 one-layer images, but it is now being modified to allow any number of layer of any colour to be composited.

Siril color compositing tool

Main features:

  • Load any single-channel image with a format supported by Siril
  • Any colour can be associated with a layer, using either a pre-defined palette, a user-defined colour, or a wavelength from a filter list or a text field for true-colour compositions
  • Luminance-based (like LRGB) or colour-based (like RGB) compositions
  • Handling binned images for any layer
  • Automatic alignment of the layers' images, using Siril registration methods (currently FWHM or DFT)
  • Soon: any number of layers, for now fixed to 3 colours

Image with different sizes or binned

Images of different size can be composited, which is often required with LRGB when the L image is very detailed and RGB images are binned to acquire faster. To handle the different image sizes, Siril resizes the smaller images to the size of the largest image, using a Lanczos resampling with OpenCV.

True colour images

The composition tool includes a method that converts a wavelength in the atmosphere to a colour. It is based on the Bruton method, described here. The approach is empirical, there is not only one mapping between a wavelength and an RGB colour. This graph gives an idea of how it's done: