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

Augmentation wrapper for ecvl::Rotate2D. More...

#include <augmentations.h>

Inheritance diagram for ecvl::AugRotate:
ecvl::Augmentation

Public Member Functions

 AugRotate (const std::array< double, 2 > &angle, const std::vector< double > &center={}, const double &scale=1., const InterpolationType &interp=InterpolationType::linear, const InterpolationType &gt_interp=InterpolationType::nearest)
 AugRotate constructor. More...
 
 AugRotate (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::Rotate2D.

Examples
example_ecvl_eddl.cpp.

Definition at line 360 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugRotate() [1/2]

ecvl::AugRotate::AugRotate ( const std::array< double, 2 > &  angle,
const std::vector< double > &  center = {},
const double &  scale = 1.,
const InterpolationType interp = InterpolationType::linear,
const InterpolationType gt_interp = InterpolationType::nearest 
)
inline

AugRotate constructor.

Parameters
[in]angleParameter which determines the range of degrees [min,max] to randomly select from.
[in]centerA std::vector<double> representing the coordinates of the rotation center. If empty, the center of the image is used.
[in]scaleOptional scaling factor.
[in]interpInterpolationType to be used. Default is InterpolationType::linear.
[in]gt_interpInterpolationType to be used for ground truth. Default is InterpolationType::nearest.

Definition at line 383 of file augmentations.h.

◆ AugRotate() [2/2]

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

Definition at line 393 of file augmentations.h.


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