-
Notifications
You must be signed in to change notification settings - Fork 5
/
fusion.h
56 lines (47 loc) · 1.29 KB
/
fusion.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
53
54
55
56
/** @file fusion.h
** @brief Image fusion
** @author Zhiwei Zeng
** @date 2018.04.16
**/
/*
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 _FUSION_H_
#define _FUSION_H_
#ifdef __cplusplus
extern "C"
{
#endif
/** @typedef struct Fusion
** @brief image fusion structure
**/
struct tagFusion;
typedef struct tagFusion Fusion;
/** @name Create, initialize, and destroy
** @{ */
Fusion *fusion_new();
int fusion_init(Fusion *self,
int base_width, int base_height,
int unreg_width, int unreg_height);
void fusion_delete(Fusion *self);
/** @} */
/** @name Data operation
** @{ */
int fusion_start(Fusion *self);
void fusion_stop(Fusion *self);
int fusion_put(Fusion *self, unsigned char *base, unsigned char *unreg);
int fusion_put_inf(Fusion *self, unsigned char *base);
int fusion_put_vis(Fusion *self, unsigned char *unreg);
int fusion_get(Fusion *self, unsigned char *fu);
int fusion_get_inf(Fusion *self, unsigned char *inf);
int fusion_get_vis(Fusion *self, unsigned char *vis);
int fusion_get_ibf(Fusion *self, unsigned char *ibf);
/** @} */
#ifdef __cplusplus
}
#endif
#endif