SqueezeBrains SDK 1.13
Statistics

Statistics. More...

Collaboration diagram for Statistics:

Data Structures

struct  sb_t_stat_model
 Statistics of a model. More...
 
struct  sb_t_stat_models
 Statistics of a model. More...
 
struct  sb_t_stat
 Statistics of the elaborations done with the function sb_project_detection . More...
 

Functions

sb_t_err sb_stat_format (const sb_t_stat *const stat, char *const str, int str_size)
 Formats the sb_t_stat structure. More...
 
sb_t_err sb_stat_destroy (sb_t_stat **const stat)
 Destroys the sb_t_stat structure. More...
 
sb_t_err sb_stat_reset (sb_t_stat *const stat, const sb_t_par *const par)
 Resets the sb_t_stat structure. More...
 
sb_t_err sb_stat_from_res (sb_t_stat *const stat, const sb_t_res *const res)
 Computes the sb_t_stat from sb_t_res. More...
 

Detailed Description

Statistics.

Function Documentation

◆ sb_stat_destroy()

sb_t_err sb_stat_destroy ( sb_t_stat **const  stat)

Destroys the sb_t_stat structure.

Parameters
[in,out]statPointer to the sb_t_stat structure.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.
See also
sb_project_get_stat

◆ sb_stat_format()

sb_t_err sb_stat_format ( const sb_t_stat *const  stat,
char *const  str,
int  str_size 
)

Formats the sb_t_stat structure.

Interprets the contents of info and converts it to a C-string containing a human-readable version of the corresponding structure.

Parameters
[in]statPointer to the sb_t_stat structure.
[out]strString filled by the function.
[in]str_sizeSize, in bytes, of str
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.
See also
sb_project_get_stat

◆ sb_stat_from_res()

sb_t_err sb_stat_from_res ( sb_t_stat *const  stat,
const sb_t_res *const  res 
)

Computes the sb_t_stat from sb_t_res.

The function cumulates the statistics extracted form the results of the detection of each image.
To evaluate the statistics of a set of images the user have to call the function with the results (sb_t_res) of each image.
To get the results use the function sb_image_info_get_results .

Warning
The function does not reset the sb_t_stat structure. To reset the structure you must call the function sb_stat_reset .
Parameters
[in,out]statPointer to the sb_t_stat structure.
[in]resPointer to the sb_t_res structure.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.
See also
sb_stat_reset
sb_image_info_get_results

◆ sb_stat_reset()

sb_t_err sb_stat_reset ( sb_t_stat *const  stat,
const sb_t_par *const  par 
)

Resets the sb_t_stat structure.

Parameters
[out]statPointer to the sb_t_stat structure.
[in]parPointer to the sb_t_par structure.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.
See also
sb_project_get_par
sb_stat_from_res