EasyColor::TransformBayer

Converts an image, using the transformation defined by a color lookup. Deprecation notice: the version of this method taking two bool as argument is deprecated. You should use the one taking an EBayerConfiguration instead.

Namespace: Euresys::Open_eVision

[C++]

void TransformBayer(
   EROIBW8* sourceImage,
   EROIBW8* destinationImage,
   EColorLookup* lookup,
   Euresys::Open_eVision::EBayerConfiguration bayerConfiguration
)

void TransformBayer(
   EROIBW8* sourceImage,
   EROIBW8* destinationImage,
   EColorLookup* lookup,
   bool evenCol,
   bool evenRow
)

Parameters

sourceImage

Pointer to the source image/ROI. This image must be encoded using the Bayer color pattern.

destinationImage

Pointer to the destination image/ROI. This image must be encoded using the Bayer color pattern.

lookup

Pointer to the color lookup table holding the color adjustment transform. The lookup table must be previously set up by EColorLookup::WhiteBalance method (no other transforms are supported).

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.

evenCol

true if the leftmost destination image column can't contain blue pixels.

evenRow

true if the topmost destination image row can't contain red pixels.

Remarks

By contrast with EasyColor::Transform, the transformation is applied directly to Bayer-encoded data. This allows efficient processing to take place before conversion to the C24 format.

EasyColor.TransformBayer

Converts an image, using the transformation defined by a color lookup. Deprecation notice: the version of this method taking two bool as argument is deprecated. You should use the one taking an EBayerConfiguration instead.

Namespace: Euresys.Open_eVision

[C#]

void TransformBayer(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   Euresys.Open_eVision.EColorLookup lookup,
   Euresys.Open_eVision.EBayerConfiguration bayerConfiguration
)

void TransformBayer(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   Euresys.Open_eVision.EColorLookup lookup,
   bool evenCol,
   bool evenRow
)

Parameters

sourceImage

Pointer to the source image/ROI. This image must be encoded using the Bayer color pattern.

destinationImage

Pointer to the destination image/ROI. This image must be encoded using the Bayer color pattern.

lookup

Pointer to the color lookup table holding the color adjustment transform. The lookup table must be previously set up by EColorLookup::WhiteBalance method (no other transforms are supported).

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.

evenCol

true if the leftmost destination image column can't contain blue pixels.

evenRow

true if the topmost destination image row can't contain red pixels.

Remarks

By contrast with EasyColor::Transform, the transformation is applied directly to Bayer-encoded data. This allows efficient processing to take place before conversion to the C24 format.