SqueezeBrains SDK 1.18
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 and Deep Cortex project, or roi_defects, in case of Surface and Deep Surface project, are passed to the function sb_project_detection.

There are special cases where tn = 1 is set.
For Surface and Deep 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.

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

  • all models disabled
  • there is no model/sample assigned to the image and no false model/sample is found (fn=0, tp=0, fp=0).

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

See also
sb_project_get_res

Definition at line 12451 of file sb.h.

Field Documentation

◆ disabled

int sb_t_res_model::disabled

Count of samples with model disabled.

Definition at line 12522 of file sb.h.

◆ fn

int sb_t_res_model::fn

Count of False Negative.

  • Retina: count of False Negative samples.
  • Surface, Deep Surface: count of False Negative blobs if blob analysis has been performed.
  • Deep Cortex: equal to 1 if the image is not classified as the correct model. Otherwise 0.

Definition at line 12487 of file sb.h.

◆ fp

int sb_t_res_model::fp

Count of False Positive.

  • Retina: count of False Positive samples.
  • Surface, Deep Surface: count of False Positive blobs if blob analysis has been performed.
  • Deep Cortex: equal to 1 if the image is classified as a wrong model. Otherwise 0.

Definition at line 12478 of file sb.h.

◆ on

int sb_t_res_model::on

Count of Optional Negative.

Definition at line 12505 of file sb.h.

◆ op

int sb_t_res_model::op

Count of Optional Positive.

Definition at line 12496 of file sb.h.

◆ out_of_roi

int sb_t_res_model::out_of_roi

Count of Out Of ROI.

Definition at line 12514 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 12529 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, Deep Surface: count of True Negative blobs if blob analysis has been performed.
  • Deep Cortex: equal to 1 if the image is correctly not classified as any models. Otherwise 0.

Definition at line 12469 of file sb.h.

◆ tp

int sb_t_res_model::tp

Count of True Positive.

  • Retina: count of True Positive samples.
  • Surface, Deep Surface: count of True Positive blobs if blob analysis has been performed.
  • Deep Cortex: equal to 1 if the image is correctly classified. Otherwise 0.

Definition at line 12460 of file sb.h.


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