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

std::shared_ptr< AugmentationClone () const override
 
template<typename ... Ts>
 OneOfAugmentationContainer (double p, Ts &&... t)
 
 OneOfAugmentationContainer (double p, std::vector< std::shared_ptr< Augmentation >> augs)
 
 OneOfAugmentationContainer (const OneOfAugmentationContainer &other)
 
 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 303 of file augmentations.h.

Constructor & Destructor Documentation

◆ OneOfAugmentationContainer() [1/4]

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

Definition at line 323 of file augmentations.h.

◆ OneOfAugmentationContainer() [2/4]

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

Definition at line 328 of file augmentations.h.

◆ OneOfAugmentationContainer() [3/4]

ecvl::OneOfAugmentationContainer::OneOfAugmentationContainer ( const OneOfAugmentationContainer other)
inline

Definition at line 333 of file augmentations.h.

◆ OneOfAugmentationContainer() [4/4]

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

Definition at line 341 of file augmentations.h.

Member Function Documentation

◆ Clone()

std::shared_ptr<Augmentation> ecvl::OneOfAugmentationContainer::Clone ( ) const
inlineoverridevirtual

Implements ecvl::Augmentation.

Definition at line 320 of file augmentations.h.


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