java wrapper can't create cv::Ptr<something> return types (Bug #3126)


Added by be rak over 11 years ago. Updated almost 10 years ago.


Status:Done Start date:2013-07-02
Priority:Normal Due date:
Assignee:Andrey Pavlenko % Done:

0%

Category:java bindings
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty: HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/3180

Description

tried to build the java wrappers, but anything, that returns a cv::Ptr<>
gets "skipped".

calib3d.txt:

Ptr_StereoBM createStereoBM(int numDisparities = 0, int blockSize = 21)
// Return type 'Ptr_StereoBM' is not supported, skipping the function
Ptr_StereoSGBM createStereoSGBM(int minDisparity, int numDisparities, int blockSize, int P1 = 0, int P2 = 0, int disp12MaxDiff = 0, int preFilterCap = 0, int uniquenessRatio = 0, int speckleWindowSize = 0, int speckleRange = 0, int mode = StereoSGBM::MODE_SGBM)
// Return type 'Ptr_StereoSGBM' is not supported, skipping the function

contrib.txt:

Ptr_FaceRecognizer createEigenFaceRecognizer(int num_components = 0, double threshold = DBL_MAX)
// Return type 'Ptr_FaceRecognizer' is not supported, skipping the function
Ptr_FaceRecognizer createFisherFaceRecognizer(int num_components = 0, double threshold = DBL_MAX)
// Return type 'Ptr_FaceRecognizer' is not supported, skipping the function
Ptr_FaceRecognizer createLBPHFaceRecognizer(int radius = 1, int neighbors = 8, int grid_x = 8, int grid_y = 8, double threshold = DBL_MAX)
// Return type 'Ptr_FaceRecognizer' is not supported, skipping the function

video.txt:

Ptr_BackgroundSubtractorGMG createBackgroundSubtractorGMG(int initializationFrames = 120, double decisionThreshold = 0.8)
// Return type 'Ptr_BackgroundSubtractorGMG' is not supported, skipping the function
Ptr_BackgroundSubtractorMOG createBackgroundSubtractorMOG(int history = 200, int nmixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
// Return type 'Ptr_BackgroundSubtractorMOG' is not supported, skipping the function
Ptr_BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2(int history = 500, double varThreshold = 16, bool detectShadows = true)
// Return type 'Ptr_BackgroundSubtractorMOG2' is not supported, skipping the function

this probably explains other issues people noticed before,
http://code.opencv.org/issues/2905#note-1
http://code.opencv.org/issues/2919#note-4


Associated revisions

Revision 4057e275
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3126 from avdmitry:move_KDTree_to_ml

History

Updated by Andrew Senin over 11 years ago

Hello be rak,

Thank you for submitting this ticket. We will try to address this issue in one of the next releases. But unfortunately our own resources are very limited at the moment. So if there is a chance you can look into this issue and propose a fix (please read http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute for more details) your help will be much appreciated!

Thanks,
Andrew Senin

  • Status changed from New to Open

Updated by be rak over 11 years ago

hope, you accept my pull ;)

Updated by Kirill Kornyakov over 11 years ago

Great, we'll try to review your PR ASAP. Thanks!!

  • Pull request set to https://github.com/Itseez/opencv/pull/1100

Updated by be rak over 10 years ago

https://github.com/Itseez/opencv/pull/3180 solved it, we can close this.

Updated by Maksim Shabunin almost 10 years ago

  • Status changed from Open to Done
  • Affected version changed from branch 'master' (2.4.9) to branch 'master' (3.0-dev)

Updated by Maksim Shabunin almost 10 years ago

  • Pull request changed from https://github.com/Itseez/opencv/pull/1100 to https://github.com/Itseez/opencv/pull/3180

Also available in: Atom PDF