Follow this link to skip to the main content

claraty::Convolve_Op<> Class Template Reference

#include <convolve_op.h>

Collaboration diagram for claraty::Convolve_Op<>:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Conv_Shape_t { CONV_SAME = 0, CONV_VALID, CONV_FULL }
enum  Border_Mode_t { CONV_CONSTANT = 0, CONV_REPLICATE, CONV_REFLECT, CONV_WRAP }

Public Member Functions

template<class TS, class TD>
void filter (const Image< TS > &src_image, Image< TD > &dest_image)
void set_kernel (Matrix< T > kernel)
void set_border_mode (Border_Mode_t border_mode, double border_constant=0)
void set_border_constant (T border_constant)
void set_conv_shape (Conv_Shape_t conv_tpye)
void set_asymm (bool a)
Matrix< T > get_kernel ()
Border_Mode_t get_border_mode ()
get_border_constant ()
Conv_Shape_t get_conv_shape ()

Private Attributes

Matrix< T > _kernel
Conv_Shape_t _conv_shape
Border_Mode_t _border_mode
_border_constant
bool asymm

Detailed Description

template<TEMPLATE_ARGS>
class claraty::Convolve_Op<>

Definition at line 74 of file convolve_op.h.


Member Enumeration Documentation

template<TEMPLATE_ARGS >
enum claraty::Convolve_Op::Conv_Shape_t

The shape or type of convolution being done.

Enumerator:
CONV_SAME 
CONV_VALID 
CONV_FULL 

Definition at line 81 of file convolve_op.h.

00081                     {
00082     CONV_SAME=0,
00083     CONV_VALID,
00084     CONV_FULL
00085   };

template<TEMPLATE_ARGS >
enum claraty::Convolve_Op::Border_Mode_t

The border mode used for CONV_SAME and CONV_FULL convolutions.

Enumerator:
CONV_CONSTANT 
CONV_REPLICATE 
CONV_REFLECT 
CONV_WRAP 

Definition at line 90 of file convolve_op.h.

00090                      {
00091     CONV_CONSTANT=0,
00092     CONV_REPLICATE,
00093     CONV_REFLECT,
00094     CONV_WRAP
00095   };


Constructor & Destructor Documentation

template<TEMPLATE_ARGS >
claraty::Convolve_Op<>::Convolve_Op ( Matrix< T >  kernel,
Conv_Shape_t  conv_shape = CONV_SAME,
Border_Mode_t  border_mode = CONV_REPLICATE,
border_constant = 0 
)

template<TEMPLATE_ARGS >
claraty::Convolve_Op<>::Convolve_Op (  ) 

template<TEMPLATE_ARGS >
claraty::Convolve_Op<>::Convolve_Op ( Matrix< T >  kernel,
Conv_Shape_t  conv_shape = CONV_SAME,
Border_Mode_t  border_mode = CONV_REPLICATE,
border_constant = 0 
)

template<TEMPLATE_ARGS >
claraty::Convolve_Op<>::Convolve_Op (  ) 


Member Function Documentation

template<TEMPLATE_ARGS >
template<class TS, class TD>
void claraty::Convolve_Op<>::filter ( const Image< TS > &  src_image,
Image< TD > &  dest_image 
)

Reimplemented in claraty::Gradient_Op<>.

template<TEMPLATE_ARGS >
void claraty::Convolve_Op<>::set_kernel ( Matrix< T >  kernel  ) 

template<TEMPLATE_ARGS >
void claraty::Convolve_Op<>::set_border_mode ( Border_Mode_t  border_mode,
double  border_constant = 0 
)

template<TEMPLATE_ARGS >
void claraty::Convolve_Op<>::set_border_constant ( border_constant  ) 

template<TEMPLATE_ARGS >
void claraty::Convolve_Op<>::set_conv_shape ( Conv_Shape_t  conv_tpye  ) 

template<TEMPLATE_ARGS >
void claraty::Convolve_Op<>::set_asymm ( bool  a  )  [inline]

Definition at line 117 of file convolve_op.h.

00117 { asymm = a; }

template<TEMPLATE_ARGS >
Matrix<T> claraty::Convolve_Op<>::get_kernel (  ) 

template<TEMPLATE_ARGS >
Border_Mode_t claraty::Convolve_Op<>::get_border_mode (  ) 

template<TEMPLATE_ARGS >
T claraty::Convolve_Op<>::get_border_constant (  ) 

template<TEMPLATE_ARGS >
Conv_Shape_t claraty::Convolve_Op<>::get_conv_shape (  ) 


Member Data Documentation

template<TEMPLATE_ARGS >
bool claraty::Convolve_Op<>::asymm [private]


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