CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Enumerations | Functions
Sep_conv
special purpose functions
Collaboration diagram for Sep_conv:

Enumerations

enum  cuv::sep_conv::separable_filter { cuv::sep_conv::SP_GAUSS, cuv::sep_conv::SP_CENTERED_DERIVATIVE, cuv::sep_conv::SP_BOX, cuv::sep_conv::SP_ORIENTATION_AND_MAGNITUDE }
 identifiers for different types of separable filters More...

Functions

template<class DstV , class SrcV , class M >
void cuv::sep_conv::convolve (tensor< DstV, M, row_major > &dst, const tensor< SrcV, M, row_major > &src, const unsigned int &radius, const separable_filter &filt, int axis=2, const float &param=0.)
 separable convolution
template<int Channels, class DstV , class SrcV , class M >
void cuv::sep_conv::convolve (interleaved_image< Channels, DstV, M > &dst, const interleaved_image< Channels, SrcV, M > &src, const unsigned int &radius, const separable_filter &filt, int axis=2, const float &param=0.)

Detailed Description

Enumeration Type Documentation

identifiers for different types of separable filters

Enumerator:
SP_GAUSS 

gaussian filter

SP_CENTERED_DERIVATIVE 

centered derivative (-1,0,1)

SP_BOX 

box filter

SP_ORIENTATION_AND_MAGNITUDE 

orientation+magnitude (for HOG, primarily)

Definition at line 22 of file separable_convolution.hpp.

Function Documentation

template<class DstV , class SrcV , class M >
void cuv::sep_conv::convolve ( tensor< DstV, M, row_major > &  dst,
const tensor< SrcV, M, row_major > &  src,
const unsigned int &  radius,
const separable_filter &  filt,
int  axis = 2,
const float &  param = 0. 
)

separable convolution

Parameters
dstresult matrix
srcsource (image)
radiusfilter radius (filter size is 2r+1 for radius r)
filttype of separable filter
axisthe image dimension to apply this filter on
paramoptional filter parameter