-2

From StackOverflow I found out that there are functions that are directly compatible to Matlab. I am interested in knowing the gradient() function. But this seems unavailable in the Java API for OpenCV 3.0.0. Does Java API hold a smaller/reduced version of OpenCV (C++) ??

Community
  • 1
  • 1
Wajih
  • 793
  • 3
  • 14
  • 31
  • Read more carefully that answer. The names there are for Matlab functions. You'll find out that you need `Sobel`, or `filter2D` to accomplish this in OpenCV – Miki Apr 07 '16 at 09:36

1 Answers1

2

As far as I Know, there is no gradient function in OpenCV (C++) either. You have to do either Sobel for each dimension (x and y), or Scharr or if you want to use an specific Kernel, you can use Filter2D.

Also, you may take a look to this question, they explain how to mimic the Matlab gradient function.

Back to your question, the Java version should have, if not all, almost all the c++ functions. Of course, this will apply to the release versions only.

Community
  • 1
  • 1
api55
  • 11,070
  • 4
  • 41
  • 57