Skip to content

Compile failure in histogram.cpp #3878

Open
@bacontsu

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions