@AndrasDeak But as you should see, the documentation is outdated (version 2.4 whereas the uptodate version is 3.1). For example what I'm looking for is accessing the upright integer of the SURF class. ->
docs.opencv.org/2.4/modules/nonfree/doc/… In my version it is not accessible with surf.upright anymore. Also SURF() changed to xfeatures2d.SURF_create().