surface_matching code stuck on training
Hello, I'm trying to use the surface matching but I dont know why it is taking a long time training.
System information:
OpenCV => 3.3.0
Operating System / Platform => Windows 10 64 Bit
Compiler => Visual Studio 2017
Description
I ran the sample code "ppf_load_match.cpp", that first gave me the error on variable "hashKey", which I resolved as in Here.
After that the code runs without errors, but it is stuck on "Training...". I'm concerned as it should take aroud 30 sec to complete that task but I have run the program for more than 30 minutes with different arguments and it is still stuck.
I have changed the parameters in line 109 (detector.match(pcTest, results, 1.0/40.0, 0.05);) as said Here and still nothing changes.
Is there anything else I can do to fix this? I could not find anything like this problem with same system as me.
EDIT: When I stop the program there is a line of error:
Run-Time Check Failure #2 - Stack around the variable 'hashKey' was corrupted
I have tried with VS2015, and still the same error: Run-Time Check Failure #2 - Stack around the variable 'hashKey' was corrupted