libeblearntools
ebl::jitter Class Reference

A class that describes jitter attributes. More...

#include <dataset.h>

List of all members.

Public Member Functions

 jitter (float h_, float w_, float s_, float r_, int spatial_norm=1)
 jitter (rect< float > &context, rect< float > &jit, int spatial_norm=1)
 jitter ()
 Empty jitter.
virtual ~jitter ()
 Destructor.
template<typename T >
rect< T > get_rect (const rect< T > &r, float ratio=1.0)
const idx< t_jitter > & get_jitter_vector () const
 Return a reference to a vector containing all jittering variables.
void set (const idx< t_jitter > &j)
 Set jitter variables given a jitter vector.

Public Attributes

float h
 Height offset.
float w
 Width offset.
float s
 Scale factor.
float r
 Rotation.

Detailed Description

A class that describes jitter attributes.


Constructor & Destructor Documentation

ebl::jitter::jitter ( float  h_,
float  w_,
float  s_,
float  r_,
int  spatial_norm = 1 
)
Parameters:
spatial_normNormalize spatial components by dividing by this, applied to the vector return by get_jitter_vector() only.
ebl::jitter::jitter ( rect< float > &  context,
rect< float > &  jit,
int  spatial_norm = 1 
)

Create a jitter object from 'jit' with respect to a specific 'context' box.

Parameters:
spatial_normNormalize spatial components by dividing by this, applied to the vector return by get_jitter_vector() only.

Member Function Documentation

template<typename T >
rect< T > ebl::jitter::get_rect ( const rect< T > &  r,
float  ratio = 1.0 
)

Returns the jittered version of r, except for rotation.

Parameters:
ratioScale spatial jitter by this ratio.

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