}
}
-void KCF_Tracker::findMaxReponse(uint &max_idx, cv::Point2f &new_location) const
+double KCF_Tracker::findMaxReponse(uint &max_idx, cv::Point2f &new_location) const
{
double max = -1.;
#ifndef BIG_BATCH
new_location = max_response_pt;
}
DEBUG_PRINT(new_location);
+ return max;
}
void KCF_Tracker::track(cv::Mat &img)
cv::Point2f new_location;
uint max_idx;
- findMaxReponse(max_idx, new_location);
+ max_response = findMaxReponse(max_idx, new_location);
p_pose.cx += p_current_scale * p_cell_size * double(new_location.x);
p_pose.cy += p_current_scale * p_cell_size * double(new_location.y);
double sub_grid_scale(uint index);
void resizeImgs(cv::Mat &input_rgb, cv::Mat &input_gray);
void train(cv::Mat input_rgb, cv::Mat input_gray, double interp_factor);
- void findMaxReponse(uint &max_idx, cv::Point2f &new_location) const;
+ double findMaxReponse(uint &max_idx, cv::Point2f &new_location) const;
};
#endif //KCF_HEADER_6565467831231