| 22 | |
| 23 | template<typename inType, typename outType> |
| 24 | Array<outType> bilateral(const Array<inType> &in, const float &sSigma, |
| 25 | const float &cSigma) { |
| 26 | Array<outType> out = createEmptyArray<outType>(in.dims()); |
| 27 | getQueue().enqueue(kernel::bilateral<outType, inType>, out, in, sSigma, |
| 28 | cSigma); |
| 29 | return out; |
| 30 | } |
| 31 | |
| 32 | #define INSTANTIATE(inT, outT) \ |
| 33 | template Array<outT> bilateral<inT, outT>(const Array<inT> &, \ |