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

Augmentation wrapper for ecvl::RandomCrop. More...

#include <augmentations.h>

Inheritance diagram for ecvl::AugRandomCrop:
ecvl::Augmentation

Public Member Functions

std::shared_ptr< AugmentationClone () const override
 
 AugRandomCrop (const std::vector< int > &size, BorderType border_type=BorderType::BORDER_CONSTANT, const int &border_value=0)
 AugRandomCrop constructor. More...
 
 AugRandomCrop (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::RandomCrop.

Definition at line 1514 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugRandomCrop() [1/2]

ecvl::AugRandomCrop::AugRandomCrop ( const std::vector< int > &  size,
BorderType  border_type = BorderType::BORDER_CONSTANT,
const int &  border_value = 0 
)
inline

AugRandomCrop constructor.

Parameters
[in]sizeDesired size of the output Image.
[in]border_typeFlag used to specify the pixel extrapolation method if the desired size is bigger than the src Image. Default is BorderType::BORDER_CONSTANT
[in]border_valuePadding value if border_type is BorderType::BORDER_CONSTANT. Default is 0.

Definition at line 1537 of file augmentations.h.

◆ AugRandomCrop() [2/2]

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

Definition at line 1543 of file augmentations.h.

Member Function Documentation

◆ Clone()

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

Implements ecvl::Augmentation.

Definition at line 1529 of file augmentations.h.


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