function to threshold input image
dst = CV_Threshold(srcimg,code,threshold,max_value,thresh_type)
source image to be converted
threshold value
maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV
Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV
This function can be used for converting an image to other colorspace. Refer OpenCV documentation for list of available conversions
This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV
img = CV_LoadImage('~/test.jpg',0) dst = CV_Threshold(img,100,255,'THRESH_BINARY') | ![]() | ![]() |