Ask Your Question
0

Chapter4_StructureFromMotion

asked 2016-10-05 11:40:32 -0600

peter_cz gravatar image

updated 2016-10-05 11:58:36 -0600

Hello,

I'm trying to use Chapter4_StructureFromMotion example from https://github.com/MasteringOpenCV/code abd its book. I use now opencv 3.1.0 andby compiling that I got

/Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.h:10:31: fatal error: opencv2/gpu/gpu.hpp: No such file or directory

How to port it to newer version of opencv, particularly for gpu? Thanks.

Regards, Peter

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-07 03:34:14 -0600

updated 2016-10-07 03:35:22 -0600

You should take a look at the OpenCV Transition Guide, which discusses the biggest differences between OpenCV2.4 and OpenCV 3.x.

In your case, the first step should be to include the correct headers! Also keep in mind the SURF was stored in opencv_contrib repository now, because it is a non-free module (there is a commercial license on its use)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-05 11:40:32 -0600

Seen: 190 times

Last updated: Oct 07 '16