diff --git a/modules/softcascade/src/cuda/channels.cu b/modules/softcascade/src/cuda/channels.cu index 62f347da86..782e243b5d 100644 --- a/modules/softcascade/src/cuda/channels.cu +++ b/modules/softcascade/src/cuda/channels.cu @@ -63,6 +63,9 @@ __host__ __device__ __forceinline__ int divUp(int total, int grain) namespace cv { namespace softcascade { namespace device { + typedef unsigned int uint; + typedef unsigned short ushort; + // Utility function to extract unsigned chars from an unsigned integer __device__ uchar4 int_to_uchar4(unsigned int in) { diff --git a/modules/softcascade/src/cuda_invoker.hpp b/modules/softcascade/src/cuda_invoker.hpp index dfce0ba097..9bdd45b883 100644 --- a/modules/softcascade/src/cuda_invoker.hpp +++ b/modules/softcascade/src/cuda_invoker.hpp @@ -58,6 +58,8 @@ namespace cv { namespace softcascade { namespace device { typedef unsigned char uchar; +typedef unsigned int uint; +typedef unsigned short ushort; struct Octave {