Why CV_RETR_CCOMP and CV_CHAIN_APPROX_SIMPLE has a private access in Imgproc (Bug #3316)
Description
Hello,
Why CV_RETR_CCOMP and CV_CHAIN_APPROX_SIMPLE has a private access in Imgproc class?
It's should be public???
HsvImage.java:85: error: CV_RETR_CCOMP has private access in Imgproc
Imgproc.findContours(hsvFrame, contours, hierarchy, Imgproc.CV_RETR_CCOMP, Imgproc.CV_CHAIN_APPROX_SIMPLE);
^
HsvImage.java:85: error: CV_CHAIN_APPROX_SIMPLE has private access in Imgproc
Imgproc.findContours(hsvFrame, contours, hierarchy, Imgproc.CV_RETR_CCOMP, Imgproc.CV_CHAIN_APPROX_SIMPLE);
^
2 errors
Associated revisions
Merge pull request #3316 from nisargthakkar:Bug3887
History
Updated by uros slana over 11 years ago
Using
Imgproc.RETR_CCOMP
and
Imgproc.CHAIN_APPROX_SIMPLE
instead of
Imgproc.CV_RETR_CCOMP
Imgproc.CV_CHAIN_APPROX_SIMPLE
- Assignee changed from Vadim Pisarevsky to uros slana
- % Done changed from 0 to 100
Updated by Maria Dimashova over 11 years ago
CV_RETR_CCOMP and CV_CHAIN_APPROX_SIMPLE are constants in old C-style of OpenCV. In the future old style will be disabled by default. So if some old-style constant is not supported in java it's not a bug, you can use C++ alternative: RETR_CCOMP and CHAIN_APPROX_SIMPLE which you already found.
Thanks!
- Category set to java bindings
- Status changed from New to Cancelled