OpenCV4Android - Reduce function? [closed]

asked 2015-07-09 15:50:19 -0500

DDS_Mytheral gravatar image

updated 2015-07-13 09:47:48 -0500

So I know that C, C++ and Python have the reduce function: http://docs.opencv.org/modules/core/d...

But I can't seem to get it working on Android with OpenCV4Android. I'm not getting any autocomplete for it in Android Studio so I assume I need to import something or directly specify which package it's in.

Can anyone know what include it needs? Or perhaps a tutorial for it or otherwise just shine some light on this?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2015-07-13 10:44:10.318546

Comments

1

I did look at that but when I get to the code I can't import org.opencv.core.Core.reduce. It does know org.opencv.core.Core but it's only seeing MinMaxLocResult under that.

DDS_Mytheral gravatar imageDDS_Mytheral ( 2015-07-13 09:47:24 -0500 )edit
1

let's just clarify: usage is:

import org.opencv.core.Core;
...
Core.reduce(...);
berak gravatar imageberak ( 2015-07-13 09:55:43 -0500 )edit

Working like a charm. Thanks much.

For some reason I was thinking it was a separate package that needed to be imported.

DDS_Mytheral gravatar imageDDS_Mytheral ( 2015-07-13 10:28:57 -0500 )edit