use the new-style headers in the samples to improve OpenCV build time.
This commit is contained in:
@@ -1,40 +1,38 @@
|
||||
/* This sample code was originally provided by Liu Liu
|
||||
* Copyright<68> 2009, Liu Liu All rights reserved.
|
||||
* Copyright<68> 2009, Liu Liu All rights reserved.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
#include "cv.h"
|
||||
#include "highgui.h"
|
||||
#include "opencv2/highgui/highgui.hpp"
|
||||
#include "opencv2/features2d/features2d.hpp"
|
||||
#include "opencv2/imgproc/imgproc_c.h"
|
||||
|
||||
static CvScalar colors[] =
|
||||
{
|
||||
{{0,0,255}},
|
||||
{{0,128,255}},
|
||||
{{0,255,255}},
|
||||
{{0,255,0}},
|
||||
{{255,128,0}},
|
||||
{{255,255,0}},
|
||||
{{255,0,0}},
|
||||
{{255,0,255}},
|
||||
{{255,255,255}},
|
||||
{{196,255,255}},
|
||||
{{255,255,196}}
|
||||
};
|
||||
|
||||
static uchar bcolors[][3] =
|
||||
{
|
||||
{0,0,255},
|
||||
{0,128,255},
|
||||
{0,255,255},
|
||||
{0,255,0},
|
||||
{255,128,0},
|
||||
{255,255,0},
|
||||
{255,0,0},
|
||||
{255,0,255},
|
||||
{255,255,255}
|
||||
};
|
||||
static CvScalar colors[] =
|
||||
{
|
||||
{{0,0,255}},
|
||||
{{0,128,255}},
|
||||
{{0,255,255}},
|
||||
{{0,255,0}},
|
||||
{{255,128,0}},
|
||||
{{255,255,0}},
|
||||
{{255,0,0}},
|
||||
{{255,0,255}},
|
||||
{{255,255,255}},
|
||||
{{196,255,255}},
|
||||
{{255,255,196}}
|
||||
};
|
||||
|
||||
static uchar bcolors[][3] =
|
||||
{
|
||||
{0,0,255},
|
||||
{0,128,255},
|
||||
{0,255,255},
|
||||
{0,255,0},
|
||||
{255,128,0},
|
||||
{255,255,0},
|
||||
{255,0,0},
|
||||
{255,0,255},
|
||||
{255,255,255}
|
||||
};
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user