diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-07 17:21:33 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-07 17:21:33 +0100 |
commit | 4b3064c63cd9fa112c3700d9e97d6571ff5ad044 (patch) | |
tree | e3bc1c5dd5066cb4561b714bc0a44068866d9cb9 | |
parent | ee82f14d1f2bbdc8fd7c0898e0c47494e4e7362d (diff) |
update ht-api.h
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r-- | ftnoir_tracker_ht/ht-api.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/ftnoir_tracker_ht/ht-api.h b/ftnoir_tracker_ht/ht-api.h index e6960206..66b87211 100644 --- a/ftnoir_tracker_ht/ht-api.h +++ b/ftnoir_tracker_ht/ht-api.h @@ -14,7 +14,7 @@ #if !defined(_WIN32) && !defined(_isnan) # define _isnan isnan #endif -#include <stdio.h> +#include <opencv2/core/core.hpp> struct ht_context; typedef struct ht_context headtracker_t; @@ -47,39 +47,8 @@ typedef struct { bool filled; } ht_result_t; -typedef enum { - cfg_type_float = 0, - cfg_type_int = 1, - cfg_type_bool = 2, - cfg_type_double = 3 -} ht_cfg_type_t; - -typedef union -{ - double d; - float f; - int i; -} ht_cfg_value_t; - -typedef struct { - const char* name; - int offset; - ht_cfg_type_t type; - ht_cfg_value_t default_value; - ht_cfg_value_t min; - ht_cfg_value_t max; - const char* docstring; -} ht_reflection_t; - -typedef struct { - int rows, cols, channels; - unsigned char* data; -} ht_frame_t; - HT_API(headtracker_t*) ht_make_context(const ht_config_t* config, const char* filename); -HT_API(void) ht_load_config(FILE* stream, ht_config_t* cfg); HT_API(void) ht_free_context(headtracker_t* ctx); -HT_API(void) ht_get_bgr_frame(headtracker_t* ctx, ht_frame_t* ret); -HT_API(void) ht_make_config(ht_config_t* cfg); +HT_API(const cv::Mat) ht_get_bgr_frame(headtracker_t* ctx); HT_API(bool) ht_cycle(headtracker_t* ctx, ht_result_t* euler); HT_API(void) ht_reset(headtracker_t* ctx); |