libeblearn
ebl::jitter_module< T, Tstate > Class Template Reference

This module jitters inputs into outputs. More...

#include <ebl_preprocessing.h>

Inheritance diagram for ebl::jitter_module< T, Tstate >:
ebl::module_1_1< T, Tstate, Tstate > ebl::module

List of all members.

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

Detailed Description

template<typename T, class Tstate = bbstate_idx<T>>
class ebl::jitter_module< T, Tstate >

This module jitters inputs into outputs.


Member Function Documentation

template<typename T , class Tstate >
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].

template<typename T , class Tstate >
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].

template<typename T , class Tstate >
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.

template<typename T , class Tstate >
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.

template<typename T , class Tstate >
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).


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