InRange

The InRange block checks each pixel value to see if it is inside the specified RGB ranges

    InRange

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

InRange_0

NameLabelDescriptionData TypeValid 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
1

InRange_1

NameLabelDescriptionData TypeValid 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

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

image

explicit

output

1

Port 3

activation

input

externalActivation