|
libeblearn
|
This module jitters inputs into outputs. More...
#include <ebl_preprocessing.h>
Public Member Functions | |
| jitter_module (const char *name="jitter_module") | |
| Creates a jitter module. | |
| virtual | ~jitter_module () |
| Destructor. | |
| void | set_translations (vector< int > &v) |
| void | set_rotations (vector< float > &v) |
| Set rotation jitter between v[0] and v[1] (in degrees). | |
| void | set_scalings (vector< float > &v) |
| void | set_shears (vector< float > &v) |
| void | set_elastics (vector< float > &v) |
| void | set_padding (vector< uint > &pads) |
| virtual void | fprop (Tstate &in, Tstate &out) |
| virtual void | bprop (Tstate &in, Tstate &out) |
| virtual void | bbprop (Tstate &in, Tstate &out) |
| virtual std::string | describe () |
| Returns a string describing this module and its parameters. | |
|
virtual jitter_module< T, Tstate > * | copy () |
| Returns a deep copy of current module. | |
Protected Attributes | |
| int | th0 |
| int | th1 |
| int | tw0 |
| int | tw1 |
| Min and max height and widths translations. | |
| float | deg0 |
| float | deg1 |
| Min and max rotation in degrees. | |
| float | sh0 |
| float | sh1 |
| float | sw0 |
| float | sw1 |
| Min and max height/width scaling ratios. | |
| float | shh0 |
| float | shh1 |
| float | shw0 |
| float | shw1 |
| Min and max height/width shearing ratios. | |
| uint | elsz0 |
| uint | elsz1 |
| Min/max elastic smoothing size. | |
| float | elcoeff0 |
| float | elcoeff1 |
| Min/max elastic coefficient. | |
| zpad_module< T, Tstate > * | zp |
| Zero-padding. | |
| Tstate | tmp |
This module jitters inputs into outputs.
| void ebl::jitter_module< T, Tstate >::set_elastics | ( | vector< float > & | v | ) |
Set elastic smoothing size between v[0] and v[1] and output factors between v[2] and v[3].
| void ebl::jitter_module< T, Tstate >::set_padding | ( | vector< uint > & | pads | ) |
Adds padding on top, left, bottom and right from pads[0], pads[1], pads[2], pads[3].
| void ebl::jitter_module< T, Tstate >::set_scalings | ( | vector< float > & | v | ) |
Set scaling jitter between v[0] and v[1] for height and v[2] and v[3] for width.
| void ebl::jitter_module< T, Tstate >::set_shears | ( | vector< float > & | v | ) |
Set shearing jitter between v[0] and v[1] for height and v[2] and v[3] for width.
| void ebl::jitter_module< T, Tstate >::set_translations | ( | vector< int > & | v | ) |
Set translation jitter between v[0] and v[1] for height and v[2] and v[3] for width (in pixels).