From 37d3b67704bc9416f5272fe849d3082024a9e487 Mon Sep 17 00:00:00 2001 From: "Joseph M. Burling" Date: Thu, 3 Dec 2020 19:41:06 -0600 Subject: [PATCH] fix compiler warnings --- source/channel_color.h | 2 +- source/channel_opticalflow.h | 1 - source/channel_orientation.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/channel_color.h b/source/channel_color.h index 4fdfd9a..b630b37 100644 --- a/source/channel_color.h +++ b/source/channel_color.h @@ -189,7 +189,7 @@ namespace debug { Strings chan_type = {"Luminance", "Red vs. Green", "Blue vs. Yellow"}; std::vector each_image{3}; - for (int n; n < 3; ++n) { + for (int n = 0; n < 3; ++n) { std::stringstream par1; par1.precision(4); par1 << "scale: " << pars.scale; diff --git a/source/channel_opticalflow.h b/source/channel_opticalflow.h index 519ad40..0e816e2 100644 --- a/source/channel_opticalflow.h +++ b/source/channel_opticalflow.h @@ -349,7 +349,6 @@ namespace debug { void visualize(const MatVec &flow_fields, const flow::Parameters &pars, const cv::Size &resize, const DisplayData &disp) { - flow_fields.size(); if (flow_fields.empty() || !pars.toggled) return; // copy grayscale flow images to color images diff --git a/source/channel_orientation.h b/source/channel_orientation.h index 02954ec..1c4228a 100644 --- a/source/channel_orientation.h +++ b/source/channel_orientation.h @@ -165,7 +165,7 @@ namespace debug { { std::vector per_img; - for (int n; n < gabor_pars.theta.size(); ++n) { + for (int n = 0; n < gabor_pars.theta.size(); ++n) { std::stringstream size; std::stringstream sigma; std::stringstream theta;