8.4.2.38. thresholds
(packages/opencv/thresholds.lsh)


dummy function that adds OpenCV C header files in C file

8.4.2.38.0. (cvThreshold src dst thresh maxvalue type)
(packages/opencv/thresholds.lsh)


 /*F///////////////////////////////////////////////////////////////////////////////////////
 //    Name:    cvThreshold
 //    Purpose: Applies fixed threshold to the grayscale image
 //    Context:
 //    Parameters:
 //      src     - source image
 //      dst     - destination image (can be the same as the source image)
 //      threshold - threshold value
 //      maxValue  - the maximum value of the image pixel
 //      type      - thresholding type, must be one of
 //                  CV_THRESH_BINARY       - val =(val > Thresh ? maxValue : 0)
 //                  CV_THRESH_BINARY_INV   - val =(val > Thresh ? 0   : maxValue)
 //                  CV_THRESH_TOZERO       - val =(val > Thresh ? val : 0)
 //                  CV_THRESH_TOZERO_INV   - val =(val > Thresh ? 0   : val)
 //    Returns:
 //    Notes:
 //F*/
 OPENCVAPI  void  cvThreshold( const CvArr*  src, CvArr*  dst,
                               double  thresh,  double  maxValue,
                               CvThreshType type );


8.4.2.38.1. (cvAdaptiveThreshold src dst max-value method type block-size param1)
(packages/opencv/thresholds.lsh)


 /*F///////////////////////////////////////////////////////////////////////////////////////
 //    Name:    cvAdaptiveThreshold
 //    Purpose: Applies adaptive threshold to the grayscale image
 //    Context:
 //    Parameters:
 //      src     - source image
 //      dst     - destination image
 //      max_value - the maximum value of the image pixel
 //      method    - method for the adaptive threshold calculation
                    (now CV_STDDEF_ADAPTIVE_THRESH only)
 //      type      - thresholding type, must be one of
 //                  CV_THRESH_BINARY       - val =(val > Thresh ? MAX    : 0)
 //                  CV_THRESH_BINARY_INV   - val =(val > Thresh ? 0      : MAX)
 //                  CV_THRESH_TOZERO       - val =(val > Thresh ? val    : 0)
 //                  CV_THRESH_TOZERO_INV   - val =(val > Thresh ? 0      : val)
 //      param1   - The method-dependent parameter. For the methods 
 //                 CV_ADAPTIVE_THRESH_MEAN_C and CV_ADAPTIVE_THRESH_GAUSSIAN_C 
 //                 it is a constant subtracted from mean or weighted mean (see
 //                 the discussion), though it may be negative.
 //    Returns:
 //    Notes:
 //F*/
 OPENCVAPI  void  cvAdaptiveThreshold( const CvArr* src, CvArr* dst, double maxValue,
                                       CvAdaptiveThreshMethod method, CvThreshType type,
                                       int block_size, double param1);