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

Augmentation wrapper for ecvl::Salt. More...

#include <augmentations.h>

Inheritance diagram for ecvl::AugSalt:
ecvl::Augmentation

Public Member Functions

 AugSalt (const std::array< double, 2 > &p, const double &per_channel)
 AugSalt constructor. More...
 
 AugSalt (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::Salt.

Definition at line 1110 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugSalt() [1/2]

ecvl::AugSalt::AugSalt ( const std::array< double, 2 > &  p,
const double &  per_channel 
)
inline

AugSalt constructor.

Parameters
[in]pParameter which determines the range of values [min,max] to randomly select the probability of any pixel being set to white.
[in]per_channelProbability of each image to use the same value for all channels of a pixel or not.

Definition at line 1125 of file augmentations.h.

◆ AugSalt() [2/2]

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

Definition at line 1132 of file augmentations.h.


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