use the new-style headers in the samples to improve OpenCV build time.
This commit is contained in:
@@ -21,13 +21,14 @@
|
||||
ISBN-10: 0596516134 or: ISBN-13: 978-0596516130
|
||||
************************************************** */
|
||||
|
||||
#include "cvaux.h"
|
||||
#include "cxmisc.h"
|
||||
#include "highgui.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include <opencv2/video/background_segm.hpp>
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
//VARIABLES for CODEBOOK METHOD:
|
||||
CvBGCodeBookModel* model = 0;
|
||||
const int NCHANNELS = 3;
|
||||
@@ -220,7 +221,7 @@ int main(int argc, char** argv)
|
||||
if( ch[n] )
|
||||
{
|
||||
int v = ptr[n] + (c == 'i' || c == 'l' ? 1 : -1);
|
||||
ptr[n] = CV_CAST_8U(v);
|
||||
ptr[n] = cv::saturate_cast<uchar>(v);
|
||||
}
|
||||
printf("%d,", ptr[n]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user