-
I want to subtract one IplImage from another. Since IplImage has no arithmetic methods, I converted them to Mat. But then subtract seems to expect a different type of Mat, and the error message indicates that I should be using opencv.core instead of opencv_core. Is it safe to change just 1 include in 1 file "import org.bytedeco.opencv.opencv_core.Mat"? I have eleven other includes that specify opencv_core in this file, and in 7 other files in this project. The relevant code is the first three lines. Neither of the next two lines works. "No suitable method found for subtract". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
We can convert between both types of Mat using OpenCVFrameConverter when necessary: |
Beta Was this translation helpful? Give feedback.
And the answer is that in line 77 "core is not found, but in line 109 "Core" is NOT NEEDED!