mirror of
https://github.com/opencv/opencv.git
synced 2026-10-02 04:02:40 +03:00
quickly corrected the previous refactoring of features2d: moved from set(SOME_PROP, val) to setSomeProp(val)
This commit is contained in:
1 parent
22ff1e8826
commit
d2b9dc5530
29 files changed
+278
-312
No files matched your search
@@ -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