AdaptiveThreshold

AdaptiveThreshold

    AdaptiveThreshold

Library

ComputerVision/Images/Transformations/Misc

Parameters

AdaptiveThreshold_0

NameLabelDescriptionData TypeValid Values

blockSize

Block Size

Indicates the matrix size of the pixel neighborhood used to calculate a threshold value for a pixel.

Scalar

maxValue

Max Value

Scalar

constant

Constant

Indicates a constant value subtracted from the mean or weighted mean.

Specify the constant as an integer.

Scalar

method

Method

Gaussian: Indicates that the threshold value T(x,y) is a weighted sum (cross-correlation with a Gaussian window) of the pixel neighborhood of (x,y) minus the specified constant.

Mean: Indicates that the threshold value T(x,y) is the mean of the pixel neighborhood of (x,y) minus the specified constant.

String

'Gaussian'
'Mean'

type

Type

Indicates the thresholding type.

There are two choices: Binary and Binary Inverted.

String

'Binary'
'Binary
Inverted'

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

Ports

NameTypeDescriptionIO TypeNumber

src(Grayscale)

explicit

input

1

image

explicit

output

1

Port 3

activation

input

externalActivation