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

Augmentation CenterCrop wrapper for ecvl::CenterCrop. More...

#include <augmentations.h>

Inheritance diagram for ecvl::AugCenterCrop:
ecvl::Augmentation

Public Member Functions

std::shared_ptr< AugmentationClone () const override
 
 AugCenterCrop ()
 AugCenterCrop constructor. Crop size is inferred from the minimum image dimension. \( crop\_size = min(Image_{cols}, Image_{rows}) \). More...
 
 AugCenterCrop (const std::vector< int > &size)
 AugCenterCrop constructor. More...
 
 AugCenterCrop (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 CenterCrop wrapper for ecvl::CenterCrop.

Examples
example_ecvl_eddl.cpp.

Definition at line 1362 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugCenterCrop() [1/3]

ecvl::AugCenterCrop::AugCenterCrop ( )
inline

AugCenterCrop constructor. Crop size is inferred from the minimum image dimension. \( crop\_size = min(Image_{cols}, Image_{rows}) \).

Definition at line 1387 of file augmentations.h.

◆ AugCenterCrop() [2/3]

ecvl::AugCenterCrop::AugCenterCrop ( const std::vector< int > &  size)
inline

AugCenterCrop constructor.

Parameters
[in]sizestd::vector<int> that specifies the new size of each dimension [w,h].

Definition at line 1393 of file augmentations.h.

◆ AugCenterCrop() [3/3]

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

Definition at line 1395 of file augmentations.h.

Member Function Documentation

◆ Clone()

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

Implements ecvl::Augmentation.

Definition at line 1380 of file augmentations.h.


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