Table Of Contents

Detect Texture Defect (G Dataflow)

Last Modified: June 25, 2019

Detects defects in textured images.

connector_pane_image
datatype_icon

defect pixel value

Value used to replace defect pixels in the image.

datatype_icon

ROI descriptor

Region of the image in which to detect defects.

datatype_icon

global rectangle

Coordinates of the bounding rectangle.

datatype_icon

contours

Individual shapes that define an ROI.

datatype_icon

ID

Object specifying if contour is the external or internal edge of an ROI.

datatype_icon

Type

Shape type of the contour.

datatype_icon

Coordinates

Relative position of the contour.

datatype_icon

classifier session in

Reference to the classifier session on which the node operates.

datatype_icon

image src

Reference to the source image.

datatype_icon

image dst

Reference to the destination image.

datatype_icon

min defect identification score

Value used to determine if a pixel in the image is a defect. The pixel is classified as a defect if the identification score is greater than or equal to this value.

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

initial step size

Offset, in pixels, by which the classifier should reposition the window during the initial defect detection phase. Values range from 0 to the smallest window dimension. The default value of 0 indicates no overlap between windows. A small, non-zero step size processes the image in more detail, but increases the time required to process the image.

Default: 0

datatype_icon

final step size

Offset, in pixels, by which the classifier should reposition the window during the final detect detection phase. The default value of 1 indicates that the classifier will reposition the window by 1 pixel as it searches for defects. The window is positioned only on pixels detected as defects in the initial defect detection phase. A smaller, non-zero step size processes the image in more detail, but increases the time required to process the image. This value must be smaller than the initial step size if the initial step size is set to a value greater than zero.

Default: 1

datatype_icon

classifier session out

Reference to the classifier session the node creates.

datatype_icon

image dst out

Reference to the destination image. This image is a binary image with all defective pixels set to the defect pixel value.

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