Why does switchToSelectiveSearchQuality() cause fatal signal in Android?

asked 2018-06-06 04:50:21 -0600

kayjay gravatar image

updated 2018-06-06 05:23:29 -0600

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

edit retag flag offensive close merge delete