Skip to content

Problem using prioritized streams in CUDA canny edge detector #11193

@johnridges

Description

@johnridges
System information (version)
  • OpenCV => Master
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2015
Detailed description

The CUDA canny edge detector (cudaimgproc/src/canny.cpp) has a bug on line 221, which is:
map_.setTo(Scalar::all(0));
This call is ignoring the stream, which when using prioritized streams causes synchronization problems. The line should be:
map_.setTo(Scalar::all(0), stream);

Steps to reproduce

The code is self-evident.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions