SqueezeBrains SDK 1.13
sb_t_svl_dl_par_perturbation Struct Reference

Describes the perturbation of the image / defect. More...

#include <sb.h>

Collaboration diagram for sb_t_svl_dl_par_perturbation:

Data Fields

char inpainter_path [512]
 Inpainter file path. More...
 
sb_t_perturbation_mode mode
 Select the perturbation mode. More...
 
sb_t_perturbation_type type
 Select the perturbation type. More...
 
int flip_horizontal
 Flip around y-axis. More...
 
int flip_vertical
 Flip around x-axis. More...
 
float shift_horizontal
 Maximum shift along x-axis. More...
 
float shift_vertical
 Maximum shift along y-axis. More...
 
sb_t_range angle_range
 Angular range, in degrees, for random rotation. More...
 
float delta_brightness
 Maximum delta of brightness. More...
 
float stretch_contrast
 Maximum variation for histogram stretching. More...
 
float delta_scale
 Maximum variation for defects scaling. More...
 

Detailed Description

Describes the perturbation of the image / defect.

See also
Deep Learning Perturbations

Definition at line 9766 of file sb.h.

Field Documentation

◆ angle_range

sb_t_range sb_t_svl_dl_par_perturbation::angle_range

Angular range, in degrees, for random rotation.

Set minimum and maximum values equal if you don't want random rotation.
Minimum angle must be less than or equal that maximum angle.
The range of values for both the minimum angle and the maximum angle is [-180; 180] degrees.

Definition at line 9829 of file sb.h.

◆ delta_brightness

float sb_t_svl_dl_par_perturbation::delta_brightness

Maximum delta of brightness.

The admitted value is a percentage in the range [SB_SVL_DL_PERTURBATION_DELTA_BRIGHTNESS_MIN, SB_SVL_DL_PERTURBATION_DELTA_BRIGHTNESS_MAX] and determines the maximum brightness offset to apply to the pixels of the image. At each epoch, an image is perturbated by a brightness variation randomly extracted from the interval [-delta_brightness*255, delta_brightness*255]. 0 Means disabled

Definition at line 9838 of file sb.h.

◆ delta_scale

float sb_t_svl_dl_par_perturbation::delta_scale

Maximum variation for defects scaling.

The values must be equal to 0.

Warning
Readable only.

Definition at line 9853 of file sb.h.

◆ flip_horizontal

int sb_t_svl_dl_par_perturbation::flip_horizontal

Flip around y-axis.

If enabled it is applied with a probability of 50% for each image in the epoch.
The admitted value are:

  • 0 = disabled
  • 1 = enabled

Definition at line 9796 of file sb.h.

◆ flip_vertical

int sb_t_svl_dl_par_perturbation::flip_vertical

Flip around x-axis.

If enabled it is applied with a probability of 50% for each image in the epoch.
The admitted value are:

  • 0 = disabled
  • 1 = enabled

Definition at line 9805 of file sb.h.

◆ inpainter_path

char sb_t_svl_dl_par_perturbation::inpainter_path[512]

Inpainter file path.

The inpainter Deep Learning network is used to fill the background in case of defects perturbations.

Warning
Readable only.

Definition at line 9773 of file sb.h.

◆ mode

sb_t_perturbation_mode sb_t_svl_dl_par_perturbation::mode

Select the perturbation mode.

It must be SB_PERTURBATION_MODE_ONLINE .

Warning
Readable only.

Definition at line 9780 of file sb.h.

◆ shift_horizontal

float sb_t_svl_dl_par_perturbation::shift_horizontal

Maximum shift along x-axis.

The admitted value is a percentage in the range [SB_SVL_DL_PERTURBATION_SHIFT_MIN, SB_SVL_DL_PERTURBATION_SHIFT_MAX] and corresponds to the maximum horizontal shift to be applied to the image. At each epoch, an image is randomly shifted by factor lower/equal than the maximum one.
0 Means disabled

Definition at line 9813 of file sb.h.

◆ shift_vertical

float sb_t_svl_dl_par_perturbation::shift_vertical

Maximum shift along y-axis.

The admitted value is a percentage in the range [SB_SVL_DL_PERTURBATION_SHIFT_MIN, SB_SVL_DL_PERTURBATION_SHIFT_MAX] and corresponds to the maximum vertical shift to be applied to the image. At each epoch, an image is randomly shifted by a factor lower/equal than the maximum one.
0 Means disabled

Definition at line 9821 of file sb.h.

◆ stretch_contrast

float sb_t_svl_dl_par_perturbation::stretch_contrast

Maximum variation for histogram stretching.

The admitted value is a percentage in the range [SB_SVL_DL_PERTURBATION_STRETCH_CONTRAST_MIN, SB_SVL_DL_PERTURBATION_STRETCH_CONTRAST_MAX] and determines the maximum stretch/compression to apply to the pixel histogram of the image. At each epoch, an image is perturbated by a random contrast variation. 0 Means disabled.

Definition at line 9846 of file sb.h.

◆ type

sb_t_perturbation_type sb_t_svl_dl_par_perturbation::type

Select the perturbation type.

It must be SB_PERTURBATION_TYPE_IMAGE .

Warning
Readable only.

Definition at line 9787 of file sb.h.


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