Table Of Contents

Supervised Color Segmentation (G Dataflow)

Last Modified: June 25, 2019

Segments a color image using trained samples.

connector_pane_image
datatype_icon

segmentation options

Cluster of parameters used to configure the color segmentation algorithm.

datatype_icon

window size

Cluster specifying the size of the window the node uses when calculating the color segmentation.

datatype_icon

x

Window size in x direction.

datatype_icon

y

Window size in y direction.

datatype_icon

step size

Distance between two windows.

datatype_icon

min particle area

Minimum number of allowed pixels.

Any particle with fewer pixels than this parameter will be deleted.

datatype_icon

max particle area

Maximum number of allowed pixels.

Any particle with fewer pixels than this parameter will be deleted.

datatype_icon

refine segmentation?

Boolean that, when enabled, processes the boundary pixels of each segmentation cluster using a step size of 1.

Enabling this parameter increases the time required to process the image, but also increases segmentation accuracy.

TRUE Processes the boundary pixels of each segmentation cluster.
FALSE Does not process the boundary pixels.
datatype_icon

ROI descriptor

Region of interest specifying the location of the sample in the image.

The ROI must be one or more closed contours. If ROI descriptor is empty or not connected, the entire image is considered to be the region. For best performance, use only one rectangle or one rotated rectangle per sample.

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 this node operates.

datatype_icon

image in

Reference to the color image to segment based on color information.

datatype_icon

label image in

Reference to the image to store labels of segmented color image.

The label image must be one of the following image data types: U8, U16, or I16.

datatype_icon

labels in

Array of class names and labels to be segmented.

Pass an empty array if all the trained classes are required.

datatype_icon

class name

Class you want to segment.

datatype_icon

label

Label number associated with class name.

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

min identification score

Minimum identification score required to group the pixel.

Valid values are 0 to 1000.

datatype_icon

maximum distance

Maximum allowed color distance to group the pixel windows.

Valid values are 0 to 1000. A value of 0 represents a conservative search strategy and a value of 1000 represents an aggressive search strategy.

datatype_icon

classifier session out

Reference to the session referenced by classifier session in.

datatype_icon

image out

Reference to the source image.

datatype_icon

label image out

Reference to the image with stored labels of segmented color image.

datatype_icon

labels out

Array of class names and label numbers that correspond with the labels of the label image.

datatype_icon

class name

One of the segmented classes.

datatype_icon

label

Label number associated with the class name.

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