fix win warnings

pull/661/head
marina.kolpakova 12 years ago
parent 318257f3a3
commit 43db0d543d
  1. 3
      modules/softcascade/src/detector.cpp

@ -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
{

Loading…
Cancel
Save