model_blobfinder.c File Reference
#include <math.h>
#include "stage_internal.h"
#include "gui.h"
Defines | |
#define | STG_DEFAULT_BLOB_CHANNELCOUNT 6 |
#define | STG_DEFAULT_BLOB_RANGEMAX 8.0 |
#define | STG_DEFAULT_BLOB_SCANHEIGHT 60 |
#define | STG_DEFAULT_BLOB_SCANWIDTH 80 |
Functions | |
int | blobfinder_init (stg_model_t *mod) |
void | blobfinder_load (stg_model_t *mod) |
int | blobfinder_raytrace_filter (stg_model_t *finder, stg_model_t *found) |
int | blobfinder_render_cfg (stg_model_t *mod, void *userp) |
int | blobfinder_render_data (stg_model_t *mod, void *userp) |
int | blobfinder_shutdown (stg_model_t *mod) |
int | blobfinder_startup (stg_model_t *mod) |
int | blobfinder_unrender_cfg (stg_model_t *mod, void *userp) |
int | blobfinder_unrender_data (stg_model_t *mod, void *userp) |
int | blobfinder_update (stg_model_t *mod) |
int | ptz_startup (stg_model_t *mod) |
Variables | |
stg_rtk_fig_t * | fig_debug_rays |
const double | STG_BLOB_WATTS = 10.0 |
const int | STG_BLOBFINDER_BLOBS_MAX = 32 |
Define Documentation
#define STG_DEFAULT_BLOB_CHANNELCOUNT 6 |
#define STG_DEFAULT_BLOB_RANGEMAX 8.0 |
Referenced by blobfinder_init().
#define STG_DEFAULT_BLOB_SCANHEIGHT 60 |
Referenced by blobfinder_init().
#define STG_DEFAULT_BLOB_SCANWIDTH 80 |
Referenced by blobfinder_init().
Function Documentation
int blobfinder_init | ( | stg_model_t * | mod | ) |
References blobfinder_load(), blobfinder_render_cfg(), blobfinder_render_data(), blobfinder_shutdown(), blobfinder_startup(), blobfinder_unrender_cfg(), blobfinder_unrender_data(), stg_blobfinder_config_t::channel_count, stg_blobfinder_config_t::channels, FALSE, stg_blobfinder_config_t::range_max, stg_blobfinder_config_t::scan_height, stg_blobfinder_config_t::scan_width, STG_DEFAULT_BLOB_RANGEMAX, STG_DEFAULT_BLOB_SCANHEIGHT, STG_DEFAULT_BLOB_SCANWIDTH, stg_lookup_color(), stg_model_add_callback(), stg_model_add_property_toggles(), stg_model_set_cfg(), stg_model_set_data(), stg_model_set_geom(), stg_model_set_polygons(), and TRUE.
void blobfinder_load | ( | stg_model_t * | mod | ) |
References stg_blobfinder_config_t::channel_count, stg_blobfinder_config_t::channels, stg_blobfinder_config_t::range_max, stg_blobfinder_config_t::scan_height, stg_blobfinder_config_t::scan_width, STG_BLOB_CHANNELS_MAX, stg_lookup_color(), stg_model_set_cfg(), wf_read_int(), wf_read_length(), wf_read_tuple_float(), and wf_read_tuple_string().
Referenced by blobfinder_init().
int blobfinder_raytrace_filter | ( | stg_model_t * | finder, | |
stg_model_t * | found | |||
) |
int blobfinder_render_cfg | ( | stg_model_t * | mod, | |
void * | userp | |||
) |
References stg_pose_t::a, stg_ptz_t::pan, PRINT_DEBUG, ptz_startup(), STG_BLOB_CFG_COLOR, STG_LAYER_BLOBDATA, stg_lookup_color(), stg_model_fig_create(), stg_model_get_fig(), stg_rtk_fig_clear(), stg_rtk_fig_color_rgb32(), stg_rtk_fig_ellipse_arc(), stg_rtk_fig_line(), stg_pose_t::x, stg_pose_t::y, and stg_ptz_t::zoom.
Referenced by blobfinder_init().
int blobfinder_render_data | ( | stg_model_t * | mod, | |
void * | userp | |||
) |
References stg_pose_t::a, stg_blobfinder_blob_t::bottom, stg_blobfinder_blob_t::color, stg_blobfinder_blob_t::left, PRINT_DEBUG, stg_blobfinder_blob_t::right, stg_blobfinder_config_t::scan_height, stg_blobfinder_config_t::scan_width, STG_LAYER_BLOBDATA, stg_model_fig_create(), stg_model_get_fig(), stg_model_get_global_pose(), stg_rtk_fig_clear(), stg_rtk_fig_color_rgb32(), stg_rtk_fig_origin(), stg_rtk_fig_rectangle(), stg_blobfinder_blob_t::top, stg_pose_t::x, and stg_pose_t::y.
Referenced by blobfinder_init().
int blobfinder_shutdown | ( | stg_model_t * | mod | ) |
int blobfinder_startup | ( | stg_model_t * | mod | ) |
int blobfinder_unrender_cfg | ( | stg_model_t * | mod, | |
void * | userp | |||
) |
int blobfinder_unrender_data | ( | stg_model_t * | mod, | |
void * | userp | |||
) |
int blobfinder_update | ( | stg_model_t * | mod | ) |
References stg_pose_t::a, stg_blobfinder_blob_t::area, blobfinder_raytrace_filter(), stg_blobfinder_blob_t::bottom, stg_blobfinder_blob_t::channel, stg_blobfinder_blob_t::color, FALSE, itl_create(), itl_destroy(), itl_first_matching(), stg_blobfinder_blob_t::left, stg_ptz_t::pan, PointToBearingRange, PRINT_DEBUG, PRINT_DEBUG3, ptz_startup(), stg_blobfinder_blob_t::range, itl_t::range, stg_blobfinder_blob_t::right, STG_BLOB_CHANNELS_MAX, stg_model_get_global_pose(), stg_model_set_data(), stg_rtk_fig_clear(), stg_blobfinder_blob_t::top, TRUE, stg_pose_t::x, stg_blobfinder_blob_t::xpos, stg_pose_t::y, stg_blobfinder_blob_t::ypos, and stg_ptz_t::zoom.
Referenced by blobfinder_startup().
int ptz_startup | ( | stg_model_t * | mod | ) |
References PRINT_DEBUG, ptz_update(), and STG_PTZ_WATTS.
Referenced by blobfinder_render_cfg(), blobfinder_update(), and ptz_init().
Variable Documentation
const double STG_BLOB_WATTS = 10.0 |
const int STG_BLOBFINDER_BLOBS_MAX = 32 |
Generated on Wed Jun 3 23:12:29 2009 for Stage by
