Proivdes Binary thresholding
img_ret=cv_thresh_binary(image,threshold,maxVal)
Input Image.
![]() | It should be grayscale, It will be copy/converted to grayscale image If rgb image is given |
It is the threshold value which is used to classify the pixel values. It should be Integer
It represents the value to be given if pixel value is more than (sometimes less than) the threshold value.It should be integer
Output Image
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).