Functions for converting images with a Bayer pattern. More...
Static Public Member Functions | |
static Image | CreateDestinationImage (Image img, RgbConversion mode) |
Create a destination image for Bayer to RGB conversions. More... | |
static Image | CreateDestinationImage (Size2D size, RgbConversion mode) |
Create a destination image for Bayer to RGB conversions. More... | |
static Image | CreateDestinationImage (int width, int height, RgbConversion mode) |
Create a destination image for Bayer to RGB conversions. More... | |
static void | ToRgb (Image imgSrc, Image imgDst, BayerPattern pattern, RgbConversion conversion, GammaCorrection gamma, WhiteBalanceFactors whiteBalance) |
Convert a Bayer-pattern image to an RGB image. More... | |
static void | ToRgb (Image imgSrc, Image imgDst, BayerPattern pattern, RgbConversion conversion) |
Convert a Bayer-pattern image to an RGB image (omitting the gamma correction and the white balance). More... | |
static Image | ToRgb (Image imgSrc, BayerPattern pattern, RgbConversion conversion, GammaCorrection gamma, WhiteBalanceFactors whiteBalance) |
Convert a Bayer-pattern image to an RGB image. More... | |
static Image | ToRgb (Image imgSrc, BayerPattern pattern, RgbConversion conversion) |
Convert a Bayer-pattern image to an RGB image (omitting the gamma correction and the white balance). More... | |
static Image | ToMono (Image imgSrc, BayerPattern pattern, RgbConversion conversion, GammaCorrection gamma, WhiteBalanceFactors whiteBalance) |
Convert a monochrome image with a Bayer pattern to a proper monochrome image. More... | |
static Image | ToBayer (Image imgSrc, BayerPattern pattern) |
Convert an RGB image to a monochrome image with Bayer pattern. More... | |
static WhiteBalanceFactors | GetWhiteBalance (Image img, BayerPattern pattern, Area2D aoi) |
Determine a suitable white balance from a monochrome image with Bayer pattern. More... | |
static WhiteBalanceFactors | GetWhiteBalance (Image img, BayerPattern pattern) |
Determine a suitable white balance from a monochrome image with Bayer pattern. More... | |
Functions for converting images with a Bayer pattern.
|
static |
Create a destination image for Bayer to RGB conversions.
Bayer to RGB conversions are also implemented as in-place operations, however the destination image needs to have a suitable width and height to be eligible. The destination width and height depend on the size of the input image as well as the conversion method.
img | Image to create the destination image for |
mode | Conversion mode to be used |
ArgumentNullException | If the input img is null. |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Create a destination image for Bayer to RGB conversions.
Bayer to RGB conversions are also implemented as in-place operations, however the destination image needs to have a suitable width and height to be eligible. The destination width and height depends on the size of the input image as well as the conversion method.
width | Width of the input image to convert for. |
height | Height of the input image to convert for. |
mode | Conversion mode to be used |
|
static |
Create a destination image for Bayer to RGB conversions.
Bayer to RGB conversions are also implemented as in-place operations, however the destination image needs to have a suitable width and height to be eligible. The destination width and height depends on the size of the input image as well as the conversion method.
size | Size of the input image to convert for. |
mode | Conversion mode to be used |
|
static |
Determine a suitable white balance from a monochrome image with Bayer pattern.
img | Monochrome image with Bayer pattern |
pattern | Pattern in the top left corner of the sensor with which img was acquired |
ArgumentNullException | If the input img is null. |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Determine a suitable white balance from a monochrome image with Bayer pattern.
img | Monochrome image with Bayer pattern |
pattern | Pattern in the top left corner of the sensor with which the img was acquired |
aoi | Area in which to determine the white balance factors |
ArgumentNullException | If the input img is null. |
ObjectDisposedException | If the input img has already been disposed |
|
static |
|
static |
Convert a monochrome image with a Bayer pattern to a proper monochrome image.
imgSrc | Image to be converted |
pattern | Pattern in the top left corner of the sensor with which imgSrc was acquired |
conversion | Conversion method |
gamma | Gamma correction |
whiteBalance | White balance |
ArgumentNullException | If the input imgSrc is null. |
ObjectDisposedException | If the input imgSrc has already been disposed |
|
static |
Convert a Bayer-pattern image to an RGB image (omitting the gamma correction and the white balance).
imgSrc | Image to be converted |
pattern | Pattern in the top left corner of the sensor with which imgSrc was acquired |
conversion | Conversion method |
ArgumentNullException | If the input imgSrc is null. |
ObjectDisposedException | If the input imgSrc has already been disposed |
|
static |
Convert a Bayer-pattern image to an RGB image.
imgSrc | Image to be converted |
pattern | Pattern in the top left corner of the sensor with which imgSrc was acquired |
conversion | Conversion method |
gamma | Gamma correction |
whiteBalance | White balance |
ArgumentNullException | If the input imgSrc is null. |
ObjectDisposedException | If the input imgSrc has already been disposed |
|
static |
Convert a Bayer-pattern image to an RGB image (omitting the gamma correction and the white balance).
imgSrc | Monochrome image with the Bayer pattern to be converted |
imgDst | Destination to receive the conversion results (preferable created by CreateDestinationImage(Size2D, RgbConversion)). |
pattern | Pattern in the top left corner of the sensor with which imgDst was acquired |
conversion | Conversion method |
ArgumentNullException | If the input imgSrc /imgDst is null. |
ObjectDisposedException | If the input imgSrc /imgDst has already been disposed |
|
static |
Convert a Bayer-pattern image to an RGB image.
imgSrc | Monochrome image with the Bayer pattern to be converted |
imgDst | Destination to receive the conversion results (preferable created by CreateDestinationImage(Size2D, RgbConversion)). |
pattern | Pattern in the top left corner of the sensor with which imgDst was acquired |
conversion | Conversion method |
gamma | Gamma correction |
whiteBalance | White balance |
ArgumentNullException | If the input imgSrc /imgDst is null. |
ObjectDisposedException | If the input imgSrc /imgDst has already been disposed |