-
Notifications
You must be signed in to change notification settings - Fork 5
/
bkgreconstruct.h
52 lines (43 loc) · 1.18 KB
/
bkgreconstruct.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/** @file bkgreconstruct.h
** @brief Infrared background reconstruction with quadtree decompose and Bezier interpolation
** @author Zhiwei Zeng
** @date 2018.04.20
**/
/*
Copyright (C) 2018 Zhiwei Zeng.
Copyright (C) 2018 Chengdu ZLT Technology Co., Ltd.
All rights reserved.
This file is part of the railway monitor toolkit and is made available under
the terms of the BSD license (see the COPYING file).
*/
#ifndef _BKGRECONSTRUCT_H_
#define _BKGRECONSTRUCT_H_
#ifdef __cplusplus
extern "C"
{
#endif
/** @typedef struct BkgReconst
** @brief background reconstruction structure
**/
struct tagBkgReconst;
typedef struct tagBkgReconst BkgReconst;
/** @name Create, initialize, and destroy
** @{ */
BkgReconst *bkgreconst_new();
int bkgreconst_init(BkgReconst *self, unsigned int width,
unsigned int height);
void bkgreconst_delete(BkgReconst *self);
/** @} */
/** @name Data processing
** @{ */
int bkgreconst_start(BkgReconst *self);
void bkgreconst_stop(BkgReconst *self);
int bkgreconst_put(BkgReconst *self,
unsigned char *image);
int bkgreconst_get(BkgReconst *self,
unsigned char *bkg);
/** @} */
#ifdef __cplusplus
}
#endif
#endif