SB SDK 1.11
sb_t_res_model Struct Reference

Defines the results of a model. More...

#include <sb.h>

Collaboration diagram for sb_t_res_model:

Data Fields

int tp
 Count of True Positive. More...
 
int tn
 Count of True Negative. More...
 
int fp
 Count of False Positive. More...
 
int fn
 Count of False Negative. More...
 
int op
 Count of Optional Positive. More...
 
int on
 Count of Optional Negative. More...
 
int out_of_roi
 Count of Out Of ROI. More...
 
int disabled
 Count of samples with model disabled. More...
 
sb_t_surface_ressurface
 Surface model analysis result. More...
 

Detailed Description

Defines the results of a model.

The fields tp, tn, fp, fn, op, on, out_of_roi, disabled are evaluated only if the samples, in case of Retina project, or roi_defects, in case of Surface project, are passed to the function sb_project_detection.

There are special cases where tn = 1 is set.
For Surface projects the results is tn=1 in case of:

  • detection roi too small
  • all models disabled (or current model disabled in case the res refers to a single model)
  • there is no required defect to be found and no false defects are found (fn=0, tp=0, fp=0).

For Retina projects the result is tn=1 in case of:

  • detection roi too small
  • all models disabled
  • there is no required object to be found and no false object is found (fn=0, tp=0, fp=0).

With Retina it is possible to have occurrences classified as True Negative if parameter sb_t_par_model::num_occurrences is set to a value lower than 0.

The presence of op or on or or does not influence the tn classification.

See also
sb_project_get_res

Definition at line 10063 of file sb.h.

Field Documentation

◆ disabled

int sb_t_res_model::disabled

Count of samples with model disabled.

  • Retina: count of samples with model disabled.
  • Surface: not used.

Definition at line 10127 of file sb.h.

◆ fn

int sb_t_res_model::fn

Count of False Negative.

  • Retina: count of False Negative samples.
  • Surface: count of False Negative blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10095 of file sb.h.

◆ fp

int sb_t_res_model::fp

Count of False Positive.

  • Retina: count of False Positive samples.
  • Surface: count of False Positive blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10087 of file sb.h.

◆ on

int sb_t_res_model::on

Count of Optional Negative.

  • Retina: count of Optional Negative samples.
  • Surface: count of Optional Negative blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10111 of file sb.h.

◆ op

int sb_t_res_model::op

Count of Optional Positive.

  • Retina: count of Optional Positive samples.
  • Surface: count of Optional Positive blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10103 of file sb.h.

◆ out_of_roi

int sb_t_res_model::out_of_roi

Count of Out Of ROI.

  • Retina: count of Out Of ROI samples.
  • Surface: count of Out Of ROI blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10119 of file sb.h.

◆ surface

sb_t_surface_res* sb_t_res_model::surface

Surface model analysis result.

In case of sb_t_res::models , the field is allocated only if the function sb_project_get_res is called with the parameter details is set to 1.

Definition at line 10134 of file sb.h.

◆ tn

int sb_t_res_model::tn

Count of True Negative.

  • Retina: count of True Negative samples. Moreover, the value is set to 1 if an image has no samples and no occurrences have been found.
  • Surface: count of True Negative blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10079 of file sb.h.

◆ tp

int sb_t_res_model::tp

Count of True Positive.

  • Retina: count of True Positive samples.
  • Surface: count of True Positive blobs if blob analysis has been performed. Otherwise the count refers to blocks.

Definition at line 10071 of file sb.h.


The documentation for this struct was generated from the following file: