I've got the following method within a header file called 'filter.h':
namespace std{
//some code
template <class T, class S, class BorderMethod>
tImage<T> binomial(const tImage<T> &in, const size_t k = 3) {
//do some computations
tImage<T> img = in.convolve<T, BorderMethod>(in, kernel);
return img;
}
}
First thing I've noticed: the definition of this method takes place within the header-file. Is that standard procedure?
Now, the actual problem: The call to the method convolve
won't work, even though in
does possess such a method. Here's the definition of the method convolve
within the class tImage<T>
:
tImage<T> convolve(const gravis::tImage<T>& image, const gravis::tArray<typename tImageTraits<T>::Float_t>& kernel);
How do I have to call this function?