Table Of Contents

Get Kernel (G Dataflow)

Last Modified: June 25, 2019

Reads a predefined kernel.

The code consists of three separate units: kernel family, kernel size, and kernel number. If you already know the code, you can enter it directly with kernel code.

connector_pane_image
datatype_icon

kernel number

Matrix family number.

This number is a two-digit number, between 0 and n, belonging to a family and a size. A number of predefined matrices are available for each type and size.

datatype_icon

kernel size

Horizontal and vertical matrix size.

The values are 3, 5, and 7, corresponding to the convolutions 3 × 3, 5 × 5, and 7 × 7 supplied in the matrix catalog. This value corresponds to the hundredth unit in the researched code.

datatype_icon

kernel code

Input that directly accesses a convolution matrix.

Each code specifies a specific convolution matrix. You can use this input if it is connected and is not 0. The kernel located in the file is then transcribed into a 2D array that is available from the output kernel. You can use the codes to specify a predefined kernel.

datatype_icon

kernel family

Type of matrix.

This value corresponds to the thousandth unit in the researched code. The matrix types are as follows:

Name Description
Gradient Specifies the kernel family as gradient
Laplacian Specifies the kernel family as Laplacian
Smoothing Specifies the kernel family as smoothing
Gaussian Specifies the kernel family as Gaussian
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

kernel

Matrix result.

The resulting matrix corresponds to a kernel encoded from the inputs kernel family, kernel size, and kernel number or a from a code directly passed through the input kernel code. You can connect this output directly to the input kernel in the Convolute node.

datatype_icon

divider

Normalization factor associated with the retrieved kernel.

datatype_icon

kernel code out

Output that retrieves the kernel.

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.

Kernel Example

For the kernel code 1300, the kernel family is gradient, the kernel size is 3 × 3, and the kernel number (nn) is 00. The matrix is as follows:

-1 0 1
-1 0 1
-1 0 1

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