Commit a2383623 authored by Rahul Kavi's avatar Rahul Kavi Committed by Maksim Shabunin

fixed warnings in type conversions

fixed warnings in type conversions from size_t to int (in getting size of number of unique classes in a training problem).
parent d20b2a5a
......@@ -125,7 +125,7 @@ bool LogisticRegression::train(cv::InputArray data_ip, cv::InputArray labels_ip)
cv::Mat labels;
set_label_map(_labels_i);
int num_classes = this->forward_mapper.size();
int num_classes = (int) this->forward_mapper.size();
// add a column of ones
cv::Mat data_t = cv::Mat::zeros(_data_i.rows, _data_i.cols+1, CV_32F);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment