EasyColor::BayerToC24
Converts a Bayer pattern encoded image into a color image.
Prefer the function EasyColor::BayerToC24 with EBayerConfiguration and mode parameters.
Namespace: Euresys::Open_eVision
[C++]
void BayerToC24(
EROIBW8* sourceImage,
EROIC24* destinationImage,
bool evenCol,
bool evenRow,
bool interpolate,
bool improved
)
void BayerToC24(
EROIBW8* sourceImage,
EROIC24* destinationImage,
Euresys::Open_eVision::EBayerConfiguration bayerConfiguration,
int mode
)
Parameters
sourceImage
Pointer to the Bayer pattern input image/ROI, stored using the 8 bits per pixel format.
destinationImage
Pointer to the color output image/ROI.
evenCol
evenRow
interpolate
Interpolation mode to be used for pixel reconstruction. When
improved
Provides an access to an improved interpolation mode that reduces visible artifacts along object edges. The running time of the improved method is longer. By default, it is not used.
bayerConfiguration
The color configuration of the bayer image. The color configuration is defined by the component of the first 2 pixels of the image, see EBayerConfiguration.
mode
Interpolation mode to be used for RGB pixel reconstruction, from 0 to 4 (increasing quality). By default, interpolation mode 1 is used.
- mode 0: No interpolation (fastest)
- mode 1: Linear interpolation on 3x3 kernel
- mode 2: Advanced interpolation on 3x3 kernel
- mode 3: Interpolation on 5x5 kernel
- mode 4: Interpolation on 9x9 kernel (slowest)
- mode 5: Linear interpolation on 2x2 kernel
Remarks
The pattern can be shifted by one pixel horizontally and vertically as needed to deal with a non standard pattern origin.
See also Bayer Filter.
EasyColor.BayerToC24
Converts a Bayer pattern encoded image into a color image.
Prefer the function EasyColor::BayerToC24 with EBayerConfiguration and mode parameters.
Namespace: Euresys.Open_eVision
[C#]
void BayerToC24(
Euresys.Open_eVision.EROIBW8 sourceImage,
Euresys.Open_eVision.EROIC24 destinationImage,
bool evenCol,
bool evenRow,
bool interpolate,
bool improved
)
void BayerToC24(
Euresys.Open_eVision.EROIBW8 sourceImage,
Euresys.Open_eVision.EROIC24 destinationImage,
Euresys.Open_eVision.EBayerConfiguration bayerConfiguration,
int mode
)
Parameters
sourceImage
Pointer to the Bayer pattern input image/ROI, stored using the 8 bits per pixel format.
destinationImage
Pointer to the color output image/ROI.
evenCol
evenRow
interpolate
Interpolation mode to be used for pixel reconstruction. When
improved
Provides an access to an improved interpolation mode that reduces visible artifacts along object edges. The running time of the improved method is longer. By default, it is not used.
bayerConfiguration
The color configuration of the bayer image. The color configuration is defined by the component of the first 2 pixels of the image, see EBayerConfiguration.
mode
Interpolation mode to be used for RGB pixel reconstruction, from 0 to 4 (increasing quality). By default, interpolation mode 1 is used.
- mode 0: No interpolation (fastest)
- mode 1: Linear interpolation on 3x3 kernel
- mode 2: Advanced interpolation on 3x3 kernel
- mode 3: Interpolation on 5x5 kernel
- mode 4: Interpolation on 9x9 kernel (slowest)
- mode 5: Linear interpolation on 2x2 kernel
Remarks
The pattern can be shifted by one pixel horizontally and vertically as needed to deal with a non standard pattern origin.
See also Bayer Filter.