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

Augmentation wrapper for ecvl::Pepper. More...

#include <augmentations.h>

Inheritance diagram for ecvl::AugPepper:
ecvl::Augmentation

Public Member Functions

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

Definition at line 1153 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugPepper() [1/2]

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

AugPepper constructor.

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

Definition at line 1168 of file augmentations.h.

◆ AugPepper() [2/2]

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

Definition at line 1175 of file augmentations.h.


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