![]() |
|
Augmentation wrapper for ecvl::RandomCrop. More...
#include <augmentations.h>
Public Member Functions | |
std::shared_ptr< Augmentation > | Clone () 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) | |
![]() | |
void | Apply (ecvl::Image &img, const ecvl::Image >=Image()) |
Generate the random value for each parameter and call the specialized augmentation functions. More... | |
virtual | ~Augmentation ()=default |
Additional Inherited Members | |
![]() | |
std::unordered_map< std::string, AugmentationParam > | params_ |
|
inline |
AugRandomCrop constructor.
[in] | size | Desired size of the output Image. |
[in] | border_type | Flag used to specify the pixel extrapolation method if the desired size is bigger than the src Image. Default is BorderType::BORDER_CONSTANT |
[in] | border_value | Padding value if border_type is BorderType::BORDER_CONSTANT. Default is 0. |
Definition at line 1537 of file augmentations.h.
|
inline |
Definition at line 1543 of file augmentations.h.
|
inlineoverridevirtual |
Implements ecvl::Augmentation.
Definition at line 1529 of file augmentations.h.