Ask Your Question
0

Using Grabcut with RenderScript (Android). [closed]

asked 2018-07-10 00:51:43 -0600

shubhendu gravatar image

Hi there, I am using OpenCV to perform grabcut in my android application but it is taking way too much time for the complete process. I am thinking of using RenderScript to speedup the whole process. But unable to find any support on how to use OpenCV function in RenderScript. Is there any tutorial or example or anything that can be of help?

PS: I am not using NDK.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2018-07-10 02:12:21.762820

Comments

"how to use OpenCV function in RenderScript" -- how do you think, it would work ?

"Is there any tutorial or example" -- no.

"I am not using NDK." -- what does that mean ?

berak gravatar imageberak ( 2018-07-10 02:06:11 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-10 02:11:38 -0600

berak gravatar image

using renderscript would basically mean: you have to write your own kernels (instead of using opencv)

we can't help you with that (it's also entirely off-topic)

edit flag offensive delete link more

Comments

Is there any other method by which I can speed up the process other than Renderscript?

shubhendu gravatar imageshubhendu ( 2018-07-10 02:22:38 -0600 )edit

looking at the grabcut src code, -- i don't think so.

berak gravatar imageberak ( 2018-07-10 02:43:18 -0600 )edit

Will using Native Code with android help?

shubhendu gravatar imageshubhendu ( 2018-07-10 02:54:30 -0600 )edit

imho, you're simply out of luck, with the current implementation. there are no parallel_for_ blocks (one could enable tbb or such) there are no universal intrinsics (NEON and friends)

berak gravatar imageberak ( 2018-07-10 03:06:18 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-10 00:51:43 -0600

Seen: 264 times

Last updated: Jul 10 '18