mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
ml: add checks of empty train data
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
|
||||
bool train( const Ptr<TrainData>& trainData, int flags ) CV_OVERRIDE
|
||||
{
|
||||
CV_Assert(!trainData.empty());
|
||||
const float min_variation = FLT_EPSILON;
|
||||
Mat responses = trainData->getNormCatResponses();
|
||||
Mat __cls_labels = trainData->getClassLabels();
|
||||
|
||||
Reference in New Issue
Block a user