Commit 695a4300 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6254 from berak:patch-2

parents 708761b2 79ac072e
......@@ -167,7 +167,7 @@ void addPointRetrainAndRedraw(Data &data, int x, int y, int response)
currentSample.at<float>(0,0) = (float)x;
currentSample.at<float>(0,1) = (float)y;
data.samples.push_back(currentSample);
data.responses.push_back(response);
data.responses.push_back(static_cast<float>(response));
Mat weights(1, 2, CV_32FC1);
float shift = 0;
......
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