Skip to content
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

Bad argument (the missing data mask must be 8-bit vector of the same size as input sample) in CvBoost::predict #34

Open
GoogleCodeExporter opened this issue Jul 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. use method predict() in ml.CvBoost when _missing matrix is null or ommited 
(Mat())
predict( (CvBoost)inst, (Mat)_sample [, (Mat)_missing=Mat() [, 
(Range)slice=Range(start=0, end=1073741823) [, (bool)raw_mode=False [, 
(bool)return_sum=False]]]]) -> tuple :


What is the expected output? What do you see instead?
Expected output -> Tuple
we get -> OpenCV Error: Bad argument (the missing data mask must be 8-bit 
vector of the same size as input sample) in CvBoost::predict, file 
/home/eloi/Escriptori/OpenCV-2.1.0/src/ml/mlboost.cpp, line 1627
Traceback (most recent call last):
RuntimeError: OpenCV-2.1.0/src/ml/mlboost.cpp:1627: error: (-5) the missing 
data mask must be 8-bit vector of the same size as input sample in function 
CvBoost::predict


What version of the product are you using? On what operating system?
 pyopencv-2.1.0.wr1.2.0, UBUNTU 9.10

Please provide any additional information below.
It seems that if _missing is missed then it creates a void Mat() and OpenCV 
fails because the dimensions of the input sample and the void missing matrix 
doesn't match.



Original issue reported on code.google.com by espavi...@gmail.com on 17 Nov 2010 at 10:41

@GoogleCodeExporter
Copy link
Author

Thanks. It's actually a bug in OpenCV's C++ function CvBoost::predict() (line 
mlboost.cpp:2146). I'll fix that this weekend anyway.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 18 Nov 2010 at 6:48

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant