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

OneOfAugmentationContainer. More...

#include <augmentations.h>

Inheritance diagram for ecvl::OneOfAugmentationContainer:
ecvl::Augmentation

Public Member Functions

template<typename ... Ts>
 OneOfAugmentationContainer (double p, Ts &&... t)
 
 OneOfAugmentationContainer (double p, std::vector< std::shared_ptr< Augmentation >> augs)
 
 OneOfAugmentationContainer (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

OneOfAugmentationContainer.

This class represents a container for multiple augmentations from which one will be randomly chosen. The chosen augmentation will be applied with a probability that must be specified by the user.

Definition at line 295 of file augmentations.h.

Constructor & Destructor Documentation

◆ OneOfAugmentationContainer() [1/3]

template<typename ... Ts>
ecvl::OneOfAugmentationContainer::OneOfAugmentationContainer ( double  p,
Ts &&...  t 
)
inline

Definition at line 313 of file augmentations.h.

◆ OneOfAugmentationContainer() [2/3]

ecvl::OneOfAugmentationContainer::OneOfAugmentationContainer ( double  p,
std::vector< std::shared_ptr< Augmentation >>  augs 
)
inline

Definition at line 318 of file augmentations.h.

◆ OneOfAugmentationContainer() [3/3]

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

Definition at line 323 of file augmentations.h.


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