-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCV Vec4iVector
should be built on IntPointer
#717
Comments
Vec4iVector
should be built on IntPointer
Vec4iVector
should be built on IntPointer
Yes, that's an error that slipped there. In any case, to work around that with the current release, we can easily cast to |
Not clear how workaround with casting to Here is some sample code that is using Vec4iVector lines = new Vec4iVector()
HoughLinesP(binary, lines, deltaRho, deltaTheta, minVotes, minLength, minGap)
FloatPointer l = lines.get(i)
float x1 = l.get(0) Due to the bug, the value of |
Something like this:
|
The workaround works. I added it to the LineFinder example. |
Fix included in version 1.5.1. Thanks for reporting! |
In C++ code
Vec4i
is defined as a vector of integers:In
org.bytedeco.opencv.presets.opencv_imgproc
(line 53) it is defined based onFloatPointer
:it should be rather:
A problem with current implementation can be seen when using
HoughLinesP
. It will produce lines' coordinates as Vec4i. Those coordinates of lines cannot be correctly transferred from the C++ side.The text was updated successfully, but these errors were encountered: