OpenLvVision_Image.lvlib:Management.lvlib:Cast.vi

Converts the image's pixel data type.

For 8-bit and 16-bit images, the scaling method for this conversion is set by the specified "Method".

OpenLvVision_Image.lvlib:Management.lvlib:Cast.vi

cerrcodeclst

error in

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    cbool

    status

    status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ci32

    code

    cstr

    source

    source describes the origin of the error or warning.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

cudtagrefflat

Image Src Reference In

An Image reference is a handle to the actual image data in memory. It's important to note that you are responsible for manually releasing (deallocating) the memory associated with this image reference when it's no longer needed to prevent memory leaks.

cudtagrefflat

Image Dst Reference In

An Image reference is a handle to the actual image data in memory. It's important to note that you are responsible for manually releasing (deallocating) the memory associated with this image reference when it's no longer needed to prevent memory leaks.

cenum

Image Type

ImageFormat enum defines pixel data type:

MonoU8 (8-bit unsigned ),

MonoU16 (16-bit unsigned),

MonoI16 (16-bit signed),

MonoSGL (single-precision float),

ColorU32 (8x4 unsigned integer, RGBA),

ColorU64 (16x4 unsigned integer, RGBA).

cu32

Method

This is valid only for 16-bit to 8-bit conversions.

Specifies the casting approach when changing pixel data types

- Use Bit Depth (0): Casts based on the image's bit depth information.

- Shift (1): Casts by right-shifting the pixel values by a specified "Number of Shifts".

- Use Lookup Table (2): Casts using a provided "Lookup Table".

ci32

Number of Shifts

For 16-bit to 8-bit conversions.

This specifies the number of bits to right-shift the pixel values during casting.

c1dsgl

Lookup Table

Array where the index is the original value, and the values at that indexs are the new values.

    csgl

    Numeric

ierrcodeclst

error out

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ibool

    status

    status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ii32

    code

    istr

    source

    source describes the origin of the error or warning.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

iudtagrefflat

Image Dst Reference Out

An Image reference is a handle to the actual image data in memory. It's important to note that you are responsible for manually releasing (deallocating) the memory associated with this image reference when it's no longer needed to prevent memory leaks.