Commit 5c2d5906 authored by marina.kolpakova's avatar marina.kolpakova

Merge pull #173 request from cuda-geek/fix-sc-arm

parents 7f542e39 6ccd7aca
......@@ -90,8 +90,13 @@ struct Feature
Feature(const cv::FileNode& fn) : channel((int)fn[SC_F_CHANNEL])
{
cv::FileNode rn = fn[SC_F_RECT];
cv::FileNodeIterator r_it = rn.end();
rect = cv::Rect(*(--r_it), *(--r_it), *(--r_it), *(--r_it));
cv::FileNodeIterator r_it = rn.begin();
int x = *r_it++;
int y = *r_it++;
int w = *r_it++;
int h = *r_it++;
rect = cv::Rect(x, y, w, h);
// 1 / area
rarea = 1.f / ((rect.width - rect.x) * (rect.height - rect.y));
......
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