Public Member Functions | List of all members
ecvl::AugGridDistortion Class Reference

Augmentation wrapper for ecvl::GridDistortion. More...

#include <augmentations.h>

Inheritance diagram for ecvl::AugGridDistortion:
ecvl::Augmentation

Public Member Functions

 AugGridDistortion (const std::array< int, 2 > &num_steps, const std::array< float, 2 > &distort_limit, const InterpolationType &interp=InterpolationType::linear, const BorderType &border_type=BorderType::BORDER_REFLECT_101, const int &border_value=0)
 AugGridDistortion constructor. More...
 
 AugGridDistortion (std::istream &is)
 
- Public Member Functions inherited from ecvl::Augmentation
void Apply (ecvl::Image &img, const ecvl::Image &gt=Image())
 Generate the random value for each parameter and call the specialized augmentation functions. More...
 
virtual ~Augmentation ()=default
 

Additional Inherited Members

- Public Attributes inherited from ecvl::Augmentation
std::unordered_map< std::string, AugmentationParamparams_
 

Detailed Description

Augmentation wrapper for ecvl::GridDistortion.

Definition at line 837 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugGridDistortion() [1/2]

ecvl::AugGridDistortion::AugGridDistortion ( const std::array< int, 2 > &  num_steps,
const std::array< float, 2 > &  distort_limit,
const InterpolationType interp = InterpolationType::linear,
const BorderType border_type = BorderType::BORDER_REFLECT_101,
const int &  border_value = 0 
)
inline

AugGridDistortion constructor.

Parameters
[in]num_stepsParameter which determines the range of values [min,max] to randomly select the number of grid cells on each side.
[in]distort_limitParameter which determines the range of values [min,max] to randomly select the distortion steps.
[in]interpInterpolationType to be used. Default is InterpolationType::linear.
[in]border_typeFlag used to specify the pixel extrapolation method. Default is BorderType::BORDER_REFLECT_101.
[in]border_valueInteger padding value if border_type is BorderType::BORDER_CONSTANT.

Definition at line 862 of file augmentations.h.

◆ AugGridDistortion() [2/2]

ecvl::AugGridDistortion::AugGridDistortion ( std::istream &  is)
inline

Definition at line 873 of file augmentations.h.


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