InRange
The InRange block checks each pixel value to see if it is inside the specified RGB ranges
Library
ComputerVision/Images/Operations
Description
InRange checks each pixel value to see if it is inside the specified RGB ranges and outputs a binary image where white indicates values inside the ranges and black indicates values outside the ranges.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
lb0 | R(0-255 )/ H(0-180) | Indicates the threshold for the minimum pixel value for red. | Scalar | |
lb1 | G(0-255) / S(0-255) | Indicates the threshold for the minimum pixel value for green. | Scalar | |
lb2 | B(0-255) / V(0-255) | Indicates the threshold for the minimum pixel value for blue. | Scalar | |
externalActivation | External activation | This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF. | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
ub0 | R(0-255) / H(0-180) | Indicates the threshold for the maximum pixel value for red. | Scalar | |
ub1 | G(0-255) / S(0-255) | Indicates the threshold for the maximum pixel value for green. | Scalar | |
ub2 | B(0-255) / V(0-255) | Indicates the threshold for the maximum pixel value for blue. | Scalar |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
src | explicit | input | 1 | |
image | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |