I am replacing the opencv library with the bytedeco library in my project.
Thx to @saudet for his first tips here :
" The official Java API is loosely based on the C++ API, so typically it’s quite straightforward. For example, any other the following works just fine:
import org.bytedeco.opencv.global.opencv_imgproc; // ... opencv_imgproc.matchTemplate(grayImg1, grayImg2, result, opencv_imgproc.TM_CCOEFF_NORMED);
import static org.opencv.imgproc.ImgProc.*; // ... matchTemplate(grayImg1, grayImg2, result, TM_CCOEFF_NORMED);
import static org.bytedeco.opencv.global.opencv_imgproc.*; // ... matchTemplate(grayImg1, grayImg2, result, TM_CCOEFF_NORMED);
There is no official guides, but the API exposed by JavaCPP is very close to the C++ API, so we can refer to the official documentation here, for example:
I have some problems trying to use the concept of Pointer :
with openCV I have :
MinMaxLocResult mmr = Core.minMaxLoc(mat); double score = mmr.maxVal;
How can I do with opencv_core.minMaxLoc(Mat, ?) : Buffer/Pointer ?