TuttleOFX  1
ConvolutionDefinitions.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_CONVOLUTION_DEFINITIONS_HPP_
00002 #define _TUTTLE_PLUGIN_CONVOLUTION_DEFINITIONS_HPP_
00003 
00004 #include <tuttle/plugin/global.hpp>
00005 
00006 #include <boost/lexical_cast.hpp>
00007 
00008 namespace tuttle {
00009 namespace plugin {
00010 namespace convolution {
00011 
00012 static const std::string kParamSize     = "size";
00013 static const unsigned int kParamSizeMax = 9;
00014 static const std::string kParamCoef     = "coef_";
00015 
00016 inline std::string getCoefName( const unsigned int y, const unsigned int x )
00017 {
00018         return kParamCoef + boost::lexical_cast<std::string>( y ) + "_" + boost::lexical_cast<std::string>( x );
00019 }
00020 
00021 
00022 static const std::string kParamBorder         = "border";
00023 static const std::string kParamBorderMirror   = "Mirror";
00024 static const std::string kParamBorderConstant = "Constant";
00025 static const std::string kParamBorderBlack    = "Black";
00026 static const std::string kParamBorderPadded   = "Padded";
00027 
00028 enum EParamBorder
00029 {
00030         eParamBorderMirror = 0,
00031         eParamBorderConstant,
00032         eParamBorderBlack,
00033         eParamBorderPadded
00034 };
00035 
00036 
00037 }
00038 }
00039 }
00040 
00041 #endif