Skip to content

Activate OPENMP with surface matching library #2810

Open
@pucciland95

Description

@pucciland95
System information (version)
  • OpenCV => 4.5.1
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2019

I start saying that I am a noob in C++ and this is the first issue that I post on Git Hub so please be patient and kind, please.

My question is actually really simple.
I am using the surface matching library in my code inside a for loop to detect (thanks to some Camera data) and track an object in my scene (I use both surface matching algorithm from Drost and the ICP algorithm).

Everything works fine and right now I am dealing with time performance problems:

I see that the code supports OPENMP but even if I activate it from my Visual Studio 2019 I get no improvements in my code speed (despite, as long as I understood correctly) the surface_matching library should support it.

Do you have any clues on why this happens? Or it's normal that it works in this way?

Moreover, as I see from the following code page linked to this repo (https://docs.opencv.org/3.0-beta/modules/surface_matching/doc/surface_matching.html) it checks that OPENMP is activated (in my case it prints that it is activated) so I thought that it could improve my time performances.

Thank you for helping me in advance.

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