Colour Threshold
Colour thresholding processor for a colour space, used to find colour contours in an image and to use PnP operations.
This processor serves as an advanced and more feature-rich alternative to the built-in ColourLocator processor, providing more control over the thresholding process and the ability to use PnP (Perspective-N-Point) to determine the real-world position of detected objects.
Author
Lucas Bubner, 2024
Since
6.0.0
See also
Inheritors
Constructors
Types
Link copied to clipboard
enum ColourSpace
The colour spaces that can be used for thresholding.
Properties
Link copied to clipboard
Link copied to clipboard
The currently used Colour Space to use for lower and upper thresholds.
Link copied to clipboard
The thickness of the border to draw around the biggest contour.
Link copied to clipboard
Default box colour.
Link copied to clipboard
The thickness of the border to draw around all contours.
Link copied to clipboard
Maximum contour area in percentage to threshold by.
Link copied to clipboard
Minimum contour area in percentage to threshold by.
Link copied to clipboard
Link copied to clipboard
The currently used lower threshold to apply to filter out contours.
Link copied to clipboard
The used global length of the axes used to display PnP projections (if enabled).
Link copied to clipboard
The used global thickness of the axes used to display PnP projections (if enabled).
Link copied to clipboard
The currently used upper threshold to apply to filter out contours.
Functions
Link copied to clipboard
Called by the vision system to draw on the frame.
Link copied to clipboard
Called by the vision system to process a frame.
Link copied to clipboard
Sets the border thickness of a detected contour that is the largest in the scene.
Link copied to clipboard
Sets the size of the blur element to use during thresholding.
Link copied to clipboard
Sets the box colour to use for highlighting contours.
Link copied to clipboard
Sets the colour space to use for this ColourThreshold.
Link copied to clipboard
Set the upper percentage that will be used as a maximum.
Link copied to clipboard
Set the lower percentage that will be used as a mininum.
Link copied to clipboard
Sets the border thickness of a detected contour that is not the largest in the scene.
Link copied to clipboard
Sets the size of the dilating element to use during thresholding.
Link copied to clipboard
Link copied to clipboard
Sets the size of the eroding element to use during thresholding.
Link copied to clipboard
Filter out contours that are inside other contours.
Link copied to clipboard
Sets whether to highlight the points of the contour on the canvas.
Link copied to clipboard
Set the lens intrinsics for the camera.
Link copied to clipboard
Sets the lower scalar to use for thresholding.
Link copied to clipboard
Sets the region of interest for this colour threshold, which will only focus detections on this area.
Link copied to clipboard
Whether to show the colour thresholding on the output mat.
Link copied to clipboard
Sets the upper scalar to use for thresholding.