Move shared interface to header file rather than repeating.

pull/2983/head
Aaron Denney 11 years ago
parent 1533d0448f
commit e532bd50d5
  1. 2
      modules/cudastereo/src/cuda/disparity_bilateral_filter.cu
  2. 8
      modules/cudastereo/src/cuda/disparity_bilateral_filter.hpp
  3. 9
      modules/cudastereo/src/disparity_bilateral_filter.cpp

@ -45,6 +45,8 @@
#include "opencv2/core/cuda/common.hpp"
#include "opencv2/core/cuda/limits.hpp"
#include "cuda/disparity_bilateral_filter.hpp"
namespace cv { namespace cuda { namespace device
{
namespace disp_bilateral_filter

@ -0,0 +1,8 @@
namespace cv { namespace cuda { namespace device
{
namespace disp_bilateral_filter
{
template<typename T>
void disp_bilateral_filter(PtrStepSz<T> disp, PtrStepSzb img, int channels, int iters, const float *, const float *, size_t, int radius, short edge_disc, short max_disc, cudaStream_t stream);
}
}}}

@ -51,14 +51,7 @@ Ptr<cuda::DisparityBilateralFilter> cv::cuda::createDisparityBilateralFilter(int
#else /* !defined (HAVE_CUDA) */
namespace cv { namespace cuda { namespace device
{
namespace disp_bilateral_filter
{
template<typename T>
void disp_bilateral_filter(PtrStepSz<T> disp, PtrStepSzb img, int channels, int iters, const float *, const float *, size_t, int radius, short edge_disc, short max_disc, cudaStream_t stream);
}
}}}
#include "cuda/disparity_bilateral_filter.hpp"
namespace
{

Loading…
Cancel
Save