opencv_contrib
opencv_contrib copied to clipboard
Compile failure in histogram.cpp
trafficstars
System Information OpenCV version: 4.10.X Operating System: Windows 11 Compiler version: MSVC 2022 CUDA Version: 12.8 cuDNN Version: 9.7.0 GPU: GTX 1650 4GB
theres two main error, one only happens in compile time
Severity Code Description Project File Line Suppression State
Error (active) E0458 argument of type "NppStatus (*)(NppiSize oSizeROI, int nLevels, size_t *hpBufferSize)" is incompatible with template parameter of type "<unnamed>::get_buf_size_c1_t" opencv_cudaimgproc D:\opencv_contrib\modules\cudaimgproc\src\histogram.cpp 665
and also
Severity Code Description Project File Line Suppression State
Error C2664 'NppStatus (NppiSize,int [],size_t *,NppStreamContext)': cannot convert argument 4 from 'cv::cuda::NppStreamHandler' to 'NppStreamContext' opencv_cudaimgproc D:\opencv_contrib\modules\cudaimgproc\src\histogram.cpp 536
Everything is set-up properly, and both opencv and also opencv_contrib was fetch from the repo freshly, i cant find the issue
Pull the latest changes for both repos from the 4.x branches.
Pull the latest changes for both repos from the 4.x branches.
There was still some error after pulling from the repo, its really weird, i'll try to re-clone them