EasyImage::Convert

Transforms the contents of an image to an image of another type.

Namespace: Euresys::Open_eVision

[C++]

void Convert(
   const EROIC24* sourceImage,
   EROIBW8* destinationImage
)

void Convert(
   const EROIBW8* sourceImage,
   EROIC24* destinationImage
)

void Convert(
   const EROIC24* sourceImage,
   EROIC15* destinationImage
)

void Convert(
   const EROIC15* sourceImage,
   EROIC24* destinationImage
)

void Convert(
   const EROIBW8* sourceImage,
   EROIC15* destinationImage
)

void Convert(
   const EROIC15* sourceImage,
   EROIBW8* destinationImage
)

void Convert(
   const EROIC24* sourceImage,
   EROIC16* destinationImage
)

void Convert(
   const EROIC16* sourceImage,
   EROIC24* destinationImage
)

void Convert(
   const EROIBW8* sourceImage,
   EROIC16* destinationImage
)

void Convert(
   const EROIC16* sourceImage,
   EROIBW8* destinationImage
)

void Convert(
   const EROIC24* sourceImage,
   EROIC24A* destinationImage
)

void Convert(
   const EROIC24A* sourceImage,
   EROIC24* destinationImage
)

void Convert(
   const EROIBW32* sourceImage,
   EROIBW16* destinationImage,
   OEV_UINT32 rightShift
)

void Convert(
   const EROIBW32* sourceImage,
   EROIBW8* destinationImage,
   OEV_UINT32 rightShift
)

void Convert(
   const EROIBW16* sourceImage,
   EROIBW8* destinationImage,
   OEV_UINT32 rightShift
)

void Convert(
   const EROIBW8* sourceImage,
   EROIBW16* destinationImage,
   OEV_UINT32 leftShift
)

void Convert(
   const EROIBW8* sourceImage,
   EROIBW32* destinationImage,
   OEV_UINT32 leftShift
)

void Convert(
   const EROIBW16* sourceImage,
   EROIBW32* destinationImage,
   OEV_UINT32 leftShift
)

void Convert(
   const EROIC24* sourceImage,
   const EROIBW8* sourceImageAlpha,
   EROIC24A* destinationImage
)

void Convert(
   const EROIC24A* sourceImage,
   EROIC24* destinationImage,
   EROIBW8* destinationImageAlpha
)

void Convert(
   const EROIC48* sourceImage,
   EROIC24* destinationImage,
   OEV_UINT32 rightShift
)

void Convert(
   const EROIC24* sourceImage,
   EROIC48* destinationImage,
   OEV_UINT32 leftShift
)

void Convert(
   const EROIBW8* sourceImage,
   EROIBW1* destinationImage
)

void Convert(
   const EROIBW16* sourceImage,
   EROIBW1* destinationImage
)

void Convert(
   const EROIBW32* sourceImage,
   EROIBW1* destinationImage
)

void Convert(
   const EROIBW1* sourceImage,
   EROIBW8* destinationImage,
   EBW8 highValue
)

void Convert(
   const EROIBW1* sourceImage,
   EROIBW8* destinationImage
)

void Convert(
   const EROIBW1* sourceImage,
   EROIBW16* destinationImage,
   EBW16 highValue
)

void Convert(
   const EROIBW1* sourceImage,
   EROIBW16* destinationImage
)

void Convert(
   const EROIBW1* sourceImage,
   EROIBW32* destinationImage,
   EBW32 highValue
)

void Convert(
   const EROIBW1* sourceImage,
   EROIBW32* destinationImage
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI.

rightShift

Right shift amplitude. By default, left justified data is assumed.

leftShift

Left shift amplitude. By default, left justified data is assumed.

sourceImageAlpha

Pointer to the source alpha component (EImageBW8/EROIBW8).

destinationImageAlpha

Pointer to the destination alpha component (EImageBW8/EROIBW8).

highValue

In the case of black and white source images/ROIs, indicates to which gray level the value 1 should be mapped. By default, 1 is mapped to the highest allowed value for the destination image/ROI.

Remarks

Conversion to a black and white image (BW1)
Turns an 8-bit gray-level image into a black and white image.
Turns a 16-bit gray-level image into a black and white image.
Turns a 32-bit gray-level image into a black and white image.
Source pixels whose values is 0 are converted to black. All other source pixel values are converted to white.
Conversion to a 8-bit gray-level image (BW8)
Turns a black and white image into an 8-bit gray-level image.
Turns a 16-bit gray-level image into an 8-bit gray-level image. A right shift can be applied to the 16-bit data to adjust the magnitude, depending on how the 16-bit data is organized. For instance, if the source image holds 10 significant bits right justified, a right shift of 2 is required to drop the 2 low order bits; if the source image holds 12 bits left justified, a right shift of 8 is required and the 4 low order bits will be truncated.
Turns an EC15, EC16 or EC24 color image into an EBW8 gray-level image. The 3 color components are averaged following an equation based on the current ERgbStandard.
Conversion to a 16-bit gray-level image (BW16)
Turns a black and white image into a 16-bit gray-level image.
Turns an 8-bit gray-level image into a 16-bit gray-level image. A left shift can be applied to the 8-bit data to adjust the magnitude, depending on how the 16-bit data is organized. For instance, if the destination image holds 10 significant bits right justified, a shift of 2 is required; if the destination image holds 12 bits left justified, a shift of 8 is required.
Conversion to a 32-bit gray-level image (BW32)
Turns a black and white image into a 32-bit gray-level image.
Conversion to color images
Turns an 8-bit gray-level image into a true color equivalent. The color components are all set equal to the corresponding gray-level value.
Converts between standard and Windows' packing RGB color formats. When converting from an EC24 image to a EC15 or EC16 one, only the 5 (or 6) most significant bits of each color component are retained.
Converts between RGB 24-bit color image and RGB32 (also known as RGBA) color image. When converting from EC24 to EC24A, you can choose to provide or not the alpha component. On the other hand, when converting from EC24A to EC24, you can choose to conserve or not the alpha component. The alpha component is retrieved and set using an EImageBW8/EROIBW8.

EasyImage.Convert

Transforms the contents of an image to an image of another type.

Namespace: Euresys.Open_eVision

[C#]

void Convert(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIC15 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC15 sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIC15 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC15 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIC16 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC16 sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIC16 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC16 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIC24A destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC24A sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW32 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   uint rightShift
)

void Convert(
   Euresys.Open_eVision.EROIBW32 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   uint rightShift
)

void Convert(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   uint rightShift
)

void Convert(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   uint leftShift
)

void Convert(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW32 destinationImage,
   uint leftShift
)

void Convert(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW32 destinationImage,
   uint leftShift
)

void Convert(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIBW8 sourceImageAlpha,
   Euresys.Open_eVision.EROIC24A destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIC24A sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage,
   Euresys.Open_eVision.EROIBW8 destinationImageAlpha
)

void Convert(
   Euresys.Open_eVision.EROIC48 sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage,
   uint rightShift
)

void Convert(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIC48 destinationImage,
   uint leftShift
)

void Convert(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW1 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW1 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW32 sourceImage,
   Euresys.Open_eVision.EROIBW1 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW1 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   Euresys.Open_eVision.EBW8 highValue
)

void Convert(
   Euresys.Open_eVision.EROIBW1 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW1 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   Euresys.Open_eVision.EBW16 highValue
)

void Convert(
   Euresys.Open_eVision.EROIBW1 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage
)

void Convert(
   Euresys.Open_eVision.EROIBW1 sourceImage,
   Euresys.Open_eVision.EROIBW32 destinationImage,
   Euresys.Open_eVision.EBW32 highValue
)

void Convert(
   Euresys.Open_eVision.EROIBW1 sourceImage,
   Euresys.Open_eVision.EROIBW32 destinationImage
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI.

rightShift

Right shift amplitude. By default, left justified data is assumed.

leftShift

Left shift amplitude. By default, left justified data is assumed.

sourceImageAlpha

Pointer to the source alpha component (EImageBW8/EROIBW8).

destinationImageAlpha

Pointer to the destination alpha component (EImageBW8/EROIBW8).

highValue

In the case of black and white source images/ROIs, indicates to which gray level the value 1 should be mapped. By default, 1 is mapped to the highest allowed value for the destination image/ROI.

Remarks

Conversion to a black and white image (BW1)
Turns an 8-bit gray-level image into a black and white image.
Turns a 16-bit gray-level image into a black and white image.
Turns a 32-bit gray-level image into a black and white image.
Source pixels whose values is 0 are converted to black. All other source pixel values are converted to white.
Conversion to a 8-bit gray-level image (BW8)
Turns a black and white image into an 8-bit gray-level image.
Turns a 16-bit gray-level image into an 8-bit gray-level image. A right shift can be applied to the 16-bit data to adjust the magnitude, depending on how the 16-bit data is organized. For instance, if the source image holds 10 significant bits right justified, a right shift of 2 is required to drop the 2 low order bits; if the source image holds 12 bits left justified, a right shift of 8 is required and the 4 low order bits will be truncated.
Turns an EC15, EC16 or EC24 color image into an EBW8 gray-level image. The 3 color components are averaged following an equation based on the current ERgbStandard.
Conversion to a 16-bit gray-level image (BW16)
Turns a black and white image into a 16-bit gray-level image.
Turns an 8-bit gray-level image into a 16-bit gray-level image. A left shift can be applied to the 8-bit data to adjust the magnitude, depending on how the 16-bit data is organized. For instance, if the destination image holds 10 significant bits right justified, a shift of 2 is required; if the destination image holds 12 bits left justified, a shift of 8 is required.
Conversion to a 32-bit gray-level image (BW32)
Turns a black and white image into a 32-bit gray-level image.
Conversion to color images
Turns an 8-bit gray-level image into a true color equivalent. The color components are all set equal to the corresponding gray-level value.
Converts between standard and Windows' packing RGB color formats. When converting from an EC24 image to a EC15 or EC16 one, only the 5 (or 6) most significant bits of each color component are retained.
Converts between RGB 24-bit color image and RGB32 (also known as RGBA) color image. When converting from EC24 to EC24A, you can choose to provide or not the alpha component. On the other hand, when converting from EC24A to EC24, you can choose to conserve or not the alpha component. The alpha component is retrieved and set using an EImageBW8/EROIBW8.