How to pass floating types, such as `VecPoint2f`, to functions?
Functions such as arcLength take a VecPoint, but there isn't an equivalent arcLength2f that take a VecPoint2f. What's the best way to handle this? I could convert VecPoint2f to VecPoint, but I lose some precision doing that.
@redcurry Unfortunately this is not supported now, to support it we have to add a new C API and it's dart wrapper.
Is the precision important for your application? If so, I can add it when having some time.
No, it's not really that important. Just wondering if there was a way to do it now. I'll just convert VecPoint2f to VecPoint. Thanks.
On second thought, it can impact the accuracy of my application (since it involves measuring), so I'll reopen this issue.
It's fine to leave it open, but I have no much time recently, so it's unlikely to be solved in a short time.
What functions do you need? I am considering add APIs that take Mat as input so that high precision conditions can be covered.
No worries, and thank you. At the moment, I need the arcLength function.
Update: I also need the boundingRect function.
@redcurry more high-precision functions inside imgproc module have been added, they are ended with 2f or 2fAsync, e.g., arcLength2f and arcLength2fAsync, now you can upgrade opencv_core or opencv_dart to v1.4.2 to use them.
If you still have any problems, please open new issues, have fun with opencv_dart!
Thank you so much!