SqueezeBrains SDK 1.18
|
Describes the perturbation of the image / defect. More...
#include <sb.h>
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 horizontal axis. More... | |
int | flip_vertical |
Flip around vertical 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 image scaling. More... | |
Describes the perturbation of the image / defect.
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.
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
float sb_t_svl_dl_par_perturbation::delta_scale |
Maximum variation for image scaling.
The admitted value is in the range [SB_SVL_DL_PERTURBATION_SCALE_MIN, SB_SVL_DL_PERTURBATION_SCALE_MAX] and determines the maximum positive and negative scale offset to apply to resize the image. At each epoch, an image is perturbated by a scale factor randomly extracted from the interval [1-delta_scale, 1+delta_scale].
0 Means disabled.
int sb_t_svl_dl_par_perturbation::flip_horizontal |
int sb_t_svl_dl_par_perturbation::flip_vertical |
char sb_t_svl_dl_par_perturbation::inpainter_path[512] |
sb_t_perturbation_mode sb_t_svl_dl_par_perturbation::mode |
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
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
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.
sb_t_perturbation_type sb_t_svl_dl_par_perturbation::type |