Why CV_RETR_CCOMP and CV_CHAIN_APPROX_SIMPLE has a private access in Imgproc (Bug #3316)


Added by uros slana over 11 years ago. Updated over 11 years ago.


Status:Cancelled Start date:2013-10-11
Priority:Normal Due date:
Assignee:uros slana % Done:

100%

Category:java bindings
Target version:-
Affected version:2.4.6 (latest release) Operating System:Linux
Difficulty:Easy HW Platform:x64
Pull request:

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

Revision c24e6f7a
Added by Vadim Pisarevsky over 10 years ago

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

Also available in: Atom PDF