Commit 12dcb155 authored by Dan's avatar Dan

Missed one conversion of CV_TYPE to cv::DataType

parent 00c29307
...@@ -18,7 +18,7 @@ template<typename T> struct step_functor : public thrust::unary_function<int, in ...@@ -18,7 +18,7 @@ template<typename T> struct step_functor : public thrust::unary_function<int, in
__host__ __device__ step_functor(int columns_, int step_, int channels_ = 1) : columns(columns_), step(step_), channels(channels_) { }; __host__ __device__ step_functor(int columns_, int step_, int channels_ = 1) : columns(columns_), step(step_), channels(channels_) { };
__host__ step_functor(cv::cuda::GpuMat& mat) __host__ step_functor(cv::cuda::GpuMat& mat)
{ {
CV_Assert(mat.depth() == CV_TYPE<T>::DEPTH); CV_Assert(mat.depth() == cv::DataType<T>::depth);
columns = mat.cols; columns = mat.cols;
step = mat.step / sizeof(T); step = mat.step / sizeof(T);
channels = mat.channels(); channels = mat.channels();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment