forked from mohamed-helala/stereo-correspondence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
util.h
31 lines (27 loc) · 854 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//// util.cpp: implementation of utility functions. ////
// -ymlwrite() writes the given Mat in a yml file.
// -ymlread() reads a Mat from the given yml file.
// -timer_start() returns the current time.
// -timer_stop() takes a previous time and returns the elapsed
// seconds.
//
// Copyright (C) Mohamed Helala 2014
// All rights reserved
// Email: [email protected]
//////////////////////////////////////////////////////////////////////
#ifndef UTIL_H
#define UTIL_H
#endif // UTIL_H
#include <sys/time.h>
#ifndef __OPENCV_OLD_CV_H__
#include "cv.h"
#endif
#ifndef __OPENCV_OLD_HIGHGUI_H__
#include "highgui.h"
#endif
using namespace cv;
using namespace std;
extern struct timeval timer_start();
extern unsigned long long timer_stop(timeval t);
extern void ymlwrite(Mat m, string s);
extern Mat ymlread(string s);