Hello everyone, I am attempting to recreate the code found here for marker-less AR. During compile time I run into the following errors:
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(574): warning C4002: too many actual parameters for macro 'min'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(574): error C2226: syntax error : unexpected type 'cv::gpu::GpuMat'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(574): error C2226: syntax error : unexpected type 'cv::gpu::GpuMat'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(574): error C2059: syntax error : ')'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(577): warning C4002: too many actual parameters for macro 'min'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(577): error C2226: syntax error : unexpected type 'cv::gpu::GpuMat'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(577): error C2062: type 'double' unexpected
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(577): error C2059: syntax error : ')'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(580): warning C4002: too many actual parameters for macro 'max'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(580): error C2226: syntax error : unexpected type 'cv::gpu::GpuMat'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(580): error C2226: syntax error : unexpected type 'cv::gpu::GpuMat'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(580): error C2059: syntax error : ')'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(583): warning C4002: too many actual parameters for macro 'max'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(583): error C2226: syntax error : unexpected type 'cv::gpu::GpuMat'
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(583): error C2062: type 'double' unexpected
1>c:\opencv\build\include\opencv2\gpu\gpu.hpp(583): error C2059: syntax error : ')'
Does anyone know what might be the cause of this? I only call the 'max' function once in the code but that is from the std namespace, so I am unsure where it is getting the GpuMat input from. Thanks in advance!