{"push_id":646687122,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"72458034057f4fdcdf55ffcde56c8a21b23de9b3","before":"ce7812fcb0458ac0ef3349898fabd3233ab61778","commits":[{"sha":"5ffb53f22966b25725955162819f6e6576c8622e","author":{"email":"34c6fceca75e456f25e7e99531e2425c6c1de443@martin-ueding.de","name":"Martin Ueding"},"message":"Add example data types for calibrateCamera call\n\nIt took me a while to figure out what was meant with\n\n    OpenCV Error: Assertion failed (i < 0) in getMat\n\nWhile searching for this error message I found [a list of error\nmessages](https://adventuresandwhathaveyou.wordpress.com/2014/03/14/opencv-error-messages-suck/)\nwhich also explained what the problem was: The data type for `rvecs` was\nnot a simple `cv::Mat` but a `std::vector<cv::Mat>`.\n\nAfter I fixed that, I got the next error message:\n\n    OpenCV Error: Assertion failed (ni > 0 && ni == ni1) in\n    collectCalibrationData, file\n    /build/buildd/opencv-2.4.9+dfsg/modules/calib3d/src/calibration.cpp,\n    line 3193\n\nThe problem here was that my data type for the `objectPoints` was just\n`vector<Vec3f>` and not `vector<vector<Vec3f>>`.\n\nIn order to save other people the time looking for this, I added\nexplicit examples of the needed data types into the documentation of the\nfunction. I had to re-read the current version a couple of times until I\ncan read the needed levels of `vector<>`. Having this example would have\nreally helped me there.","distinct":true,"url":"https://api.github.com/repos/Itseez/opencv/commits/5ffb53f22966b25725955162819f6e6576c8622e"},{"sha":"72458034057f4fdcdf55ffcde56c8a21b23de9b3","author":{"email":"87b57388d14df1278545f685429c99b27c15f873@gmail.com","name":"Vadim Pisarevsky"},"message":"Merge pull request #3954 from martin-ueding:master","distinct":true,"url":"https://api.github.com/repos/Itseez/opencv/commits/72458034057f4fdcdf55ffcde56c8a21b23de9b3"}]}