This way, visual debug better shows what the tracker actually sees.
cv::Mat patch_gray = get_subwindow(input_gray, cx, cy, scaled.width, scaled.height, angle);
cv::Mat patch_rgb = get_subwindow(input_rgb, cx, cy, scaled.width, scaled.height, angle);
cv::Mat patch_gray = get_subwindow(input_gray, cx, cy, scaled.width, scaled.height, angle);
cv::Mat patch_rgb = get_subwindow(input_rgb, cx, cy, scaled.width, scaled.height, angle);
- if (dbg_patch)
- patch_rgb.copyTo(*dbg_patch);
-
// resize to default size
if (scaled.area() > fit_size.area()) {
// if we downsample use INTER_AREA interpolation
// resize to default size
if (scaled.area() > fit_size.area()) {
// if we downsample use INTER_AREA interpolation
+ if (dbg_patch)
+ patch_rgb.copyTo(*dbg_patch);
+
if (m_use_color && input_rgb.channels() == 3) {
// use rgb color space
cv::Mat patch_rgb_norm;
if (m_use_color && input_rgb.channels() == 3) {
// use rgb color space
cv::Mat patch_rgb_norm;