![]() |
|
Augmentation wrapper for ecvl::OpticalDistortion. More...
#include <augmentations.h>
Public Member Functions | |
AugOpticalDistortion (const std::array< float, 2 > &distort_limit, const std::array< float, 2 > &shift_limit, const InterpolationType &interp=InterpolationType::linear, const BorderType &border_type=BorderType::BORDER_REFLECT_101, const int &border_value=0) | |
AugOpticalDistortion constructor. More... | |
AugOpticalDistortion (std::istream &is) | |
![]() | |
void | Apply (ecvl::Image &img, const ecvl::Image >=Image()) |
Generate the random value for each parameter and call the specialized augmentation functions. More... | |
virtual | ~Augmentation ()=default |
Additional Inherited Members | |
![]() | |
std::unordered_map< std::string, AugmentationParam > | params_ |
|
inline |
AugOpticalDistortion constructor.
[in] | distort_limit | Parameter which determines the range of values [min,max] to randomly select the distortion steps. |
[in] | shift_limit | Parameter which determines the range of values [min,max] to randomly select the image shifting. |
[in] | interp | InterpolationType to be used. Default is InterpolationType::linear. |
[in] | border_type | Flag used to specify the pixel extrapolation method. Default is BorderType::BORDER_REFLECT_101. |
[in] | border_value | Integer padding value if border_type is BorderType::BORDER_CONSTANT. |
Definition at line 1045 of file augmentations.h.
|
inline |
Definition at line 1055 of file augmentations.h.