title: How can I use the nonfree modules in OpenCV for Java?
body: <p>I want to use SURF for feature detection <a href="http://docs.opencv.org/doc/tutorials/features2d/feature_homography/feature_homography.html" rel="nofollow">found here</a> and use it in a Java applicaion, however the nonfree modules are not included in the library by default, as they are patented.</p>
  
  <p>How do I access this module? I have searched and tried a few things but none have worked; many focusing on Android, which I don't fully understand.</p>
  
  <p>Can I add it when using cmake to build the library? or is there a better mean? </p>