Ask Your Question

stalin's profile - activity

2016-12-29 11:33:12 -0600 asked a question Why MORPH_ELLIPSE kernel is slower than MORPH_RECT and others?

I was doing some dilation and erosion operations and noticed that MORPH_ELLIPSE kernel takes much more time than MORPH_RECT and MORPH_CROSS kernel. A similar question and finding is also posted in StackOverflow here.

Can somebody tell why this is so?

2016-03-12 02:51:33 -0600 asked a question OpenCV Java code running faster than OpenCV native C++ code

I have written two versions of an android application using OpenCV. OpenCV is being used for following operations:

  • Resizing images
  • Color conversion from RGB to HSV
  • Computing ratio of pixel values of two images

The first version of the application does all these operations in Java and takes around 200 ms. However, the native implementation takes around 700 ms!

Moreover, I also measured the timings of Java implementation on Nexus 5 and Nexus 6 and I got following results:

Nexus 5: Java: 200 ms, C++: 700 ms!

Nexus 6: Java: 180 ms, C++: 900 ms!

Can somebody please explain why this is happening? Isn't the native implementation supposed to run faster?

2016-03-08 08:16:31 -0600 asked a question opencv4android static libraries to shared libraries

I downloaded OpenCV4Android 3.1.0. All the native libraries in jni folder are static ('.a' extension). However, the tutorials I am following for using opencv in Android Studio are using shared libraries ('.so' extension). Do I have to convert the static libraries to shared? How?

2016-02-22 05:41:16 -0600 commented question In which header file seamlessClone() is present?

How can I use this seamlessClone function in opencv4android SDK? I cannot find it.

2016-02-22 03:59:35 -0600 commented question In which header file seamlessClone() is present?

Do I need opencv_extra modules for seamlessClone()?

2016-02-22 03:41:03 -0600 received badge  Editor (source)
2016-02-22 03:40:10 -0600 asked a question In which header file seamlessClone() is present?

In which header file can I find seamlessClone()? Is it part of opencv_contrib extra modules?

2015-12-03 04:00:54 -0600 asked a question seamless cloning in opencv3.0 without specifying point in destination image

Hi!

I have two images of a scene (A and F) and a mask. Images A and F are aligned. I want to do a seamless cloning of the part inside mask from image A to image F (at the same location). However, the seamlessClone() requires a parameter - Point as an argument to indicate where to copy the object.

How can I achieve my goal?