calib3d: Fix calibrateCamera() misleading error
authorThang Tran <TranKimThang279@gmail.com>
Mon, 11 Feb 2019 21:07:30 +0000 (22:07 +0100)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Tue, 12 Feb 2019 13:23:34 +0000 (16:23 +0300)
commita1f4e65d034bc17b783497aafd251ab417f1dcea
treef6d84adf5b647c94b306d71e20d63e34a76ff4f9
parent5f57842575cdb633debc0c1142d7d842c4176b95
calib3d: Fix calibrateCamera() misleading error

objectPoints and imagePoints are not checked whether they're empty and
cause checkVector() to fail, thus result in a wrong error message.

Fixes: https://github.com/opencv/opencv/issues/6002
modules/calib3d/src/calibration.cpp