Table Of Contents

Create Image (G Dataflow)

Last Modified: October 24, 2017

Creates a temporary memory location for an image.

Use the Create Image node in conjunction with the Dispose Image node to create or dispose of images.

connector_pane_image
datatype_icon

image name

Name associated with the created image. Each image created must have a unique name.

datatype_icon

image type

Type of image.

Choose from the following values:

Name Value Description
Grayscale (U8) 0

8 bits per pixel (unsigned, standard monochrome)

Grayscale (16) 1

16 bits per pixel (signed)

Grayscale (SGL) 2

32 bits per pixel (floating point)

Complex (CSG) 3

2 × 32 bits per pixel (floating point)

RGB (U32) 4

32 bits per pixel (red, green, blue, alpha)

HSL (U32) 5

32 bits per pixel (hue, saturation, luminance, alpha)

RGB (U64) 6

64 bits per pixel (red, green, blue, alpha)

Grayscale (U16) 7

16 bits per pixel (unsigned, standard monochrome)

datatype_icon

border size

Width, in pixels, of the border to create around an image.

These pixels are used only for specific nodes. Create a border at the beginning of your application if an image is to be processed later using functions that require a border (for example, labeling and morphology). The default border value is 3. With a border of three pixels, you can use kernels up to 7 × 7 with no change. If you plan to use kernels larger than 7 × 7 in your process, specify a larger border when creating your image. The border of an image is taken into account only when the image is processed. It is never displayed or stored in a file.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

new image

Reference to image that is supplied as input to all subsequent (downstream) functions used by NI Vision. Multiple images can be created in a LabVIEW application.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics