24 #include <Filter/FilterNTo2NFactory.hh>
25 #include <Filter/GradientGauss.hh>
26 #include <Filter/GradientSimple.hh>
27 #include <Filter/GradientSobel3x3.hh>
28 #include <Filter/GradientGaussAsymmetric.hh>
33 template <
class InputStorageType,
class OutputStorageType>
38 if (className ==
"GradientGauss")
40 if (className ==
"GradientSimple")
42 if (className ==
"GradientSobel3x3")
44 if (className ==
"GradientGaussAsymmetric")
47 BIASERR(
"Invalid FilterNTo2N class: " << className);
52 #define FILTER_INSTANTIATION_CLASS FilterNTo2NFactory
53 #define FILTER_INSTANTIATION_NO_UNSIGNED_OUTPUT
54 #include "Filterinst.hh"
gradient calculation with separated gauss masks
FilterNTo2N< InputStorageType, OutputStorageType > * Generate(const std::string &className)
base class for simple n->2n filter implementations
gradient calculation with sobel 3 by 3 masks
simple gradient calculation gx(x,y) = I(x+1,y) - I(x-1,y) gy(x,y) = I(x,y+1) - I(x,y-1)
gradient calculation with separated gauss masks