<< cv_test ComputerVision cv_thresh_binary_inverse >>

ComputerVision >> ComputerVision > cv_thresh_binary

cv_thresh_binary

Proivdes Binary thresholding

Calling Sequence

img_ret=cv_thresh_binary(image,threshold,maxVal)

Arguments

image

Input Image.

It should be grayscale, It will be copy/converted to grayscale image If rgb image is given
threshold

It is the threshold value which is used to classify the pixel values. It should be Integer

maxVal

It represents the value to be given if pixel value is more than (sometimes less than) the threshold value.It should be integer

img_ret

Output Image

Description

Binary Thresholding

Thresholding is a process where If pixel value is greater than a arbitrary value, it is assigned one value (may be white), else it is assigned another value (may be white).

Examples

img_ret=cv_thresh_binary(input_image,127,255);

See Also


Report an issue
<< cv_test ComputerVision cv_thresh_binary_inverse >>