Why does switchToSelectiveSearchQuality() cause fatal signal in Android?
I am using the Ximgproc library of opencv contrib to generate object proposals in Android Studio. When using gs.switchToSingleStrategy() or gs.switchToSelectiveSearchFast() my code works fine, but when I use gs.switchToSelectiveSearchQuality() the app immediately shuts down and restarts. Does anyone have any suggestions?
Code:
SelectiveSearchSegmentation gs = Ximgproc.createSelectiveSearchSegmentation();
gs.setBaseImage(ImageMat.clone());
//gs.switchToSingleStrategy(); //<------------------works fine
//gs.switchToSelectiveSearchFast(); //<------------------works fine
gs.switchToSelectiveSearchQuality(); //<------------------doesn't work
The only error I get is: Fatal signal 11 (SIGSEGV), code 1