quickly corrected the previous refactoring of features2d: moved from set(SOME_PROP, val) to setSomeProp(val)
This commit is contained in:
@@ -132,8 +132,11 @@ public:
|
||||
fd = GFTTDetector::create();
|
||||
break;
|
||||
case HARRIS:
|
||||
fd = GFTTDetector::create();
|
||||
fd->set(GFTTDetector::USE_HARRIS_DETECTOR, 1);
|
||||
{
|
||||
Ptr<GFTTDetector> gftt = GFTTDetector::create();
|
||||
gftt->setHarrisDetector(true);
|
||||
fd = gftt;
|
||||
}
|
||||
break;
|
||||
case SIMPLEBLOB:
|
||||
fd = SimpleBlobDetector::create();
|
||||
|
@@ -23,14 +23,6 @@ JNI_OnLoad(JavaVM* vm, void* )
|
||||
if (vm->GetEnv((void**) &env, JNI_VERSION_1_6) != JNI_OK)
|
||||
return -1;
|
||||
|
||||
bool init = true;
|
||||
#ifdef HAVE_OPENCV_VIDEO
|
||||
init &= cv::initModule_video();
|
||||
#endif
|
||||
|
||||
if(!init)
|
||||
return -1;
|
||||
|
||||
/* get class with (*env)->FindClass */
|
||||
/* register methods with (*env)->RegisterNatives */
|
||||
|
||||
|
Reference in New Issue
Block a user