Skip to content

Why does cv::cuda::FastFeatureDetector only accepts FastFeatureDetector::TYPE_9_16? #2962

Open
@KansaiUser

Description

@KansaiUser
System information (version)
  • OpenCV => :3.4.11
  • Operating System / Platform => :Ubuntu 20:
  • Compiler => :g++ 7.5.0 :
Detailed description

I tried to call

cv::cuda::FastFeatureDetector::create with the argument type with other value than TYPE_9_16 and the program crashed due to an assertion. Can someone explain this.

The reason I was doing this is this solution to the problem that CUDA Fast detector does not detect all keypoints as stated here

Steps to reproduce
```.cpp
cv::Ptr<cv::cuda::FastFeatureDetector> CUDA_detector = cv::cuda::FastFeatureDetector::create(32,true,1,5000);
```
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

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