fix win warnings

This commit is contained in:
marina.kolpakova 2013-03-18 13:50:45 +04:00
parent 318257f3a3
commit 43db0d543d

View File

@ -43,7 +43,8 @@
#include "precomp.hpp"
cv::softcascade::Detection::Detection(const cv::Rect& b, const float c, int k)
: x(b.x), y(b.y), w(b.width), h(b.height), confidence(c), kind(k) {}
: x(static_cast<ushort>(b.x)), y(static_cast<ushort>(b.y)),
w(static_cast<ushort>(b.width)), h(static_cast<ushort>(b.height)), confidence(c), kind(k) {}
cv::Rect cv::softcascade::Detection::bb() const
{