2014-01-19 05:16:39 -0600 | answered a question | sigsegv on android jni using grabCut Ok, it seems like the solution was simply to resize the input image. It was a high resolution image and shrinking made it reasonable input for grabcut. |
2014-01-17 04:26:22 -0600 | received badge | ● Editor (source) |
2014-01-16 14:18:44 -0600 | asked a question | sigsegv on android jni using grabCut Hi there I've got this piece of code: which works fine except on Android, when it results in "signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad". It's called from jni method and looks pretty much the same as in my desktop app, where it doesn't crush. Any ideas? [edit] I was thinking maybe it has something to do with android RGBA format? What imread() opens is an image saved as a jpg file (a picture taken from camera) . Maybe its format is what grabCut doesn't accept as a source? I tried converting it to CV_8UC3 but the result is the same. |