Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
iamamutt committed Dec 4, 2020
1 parent 76fd144 commit 37d3b67
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/channel_color.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace debug {
Strings chan_type = {"Luminance", "Red vs. Green", "Blue vs. Yellow"};

std::vector<Strings> 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;
Expand Down
1 change: 0 additions & 1 deletion source/channel_opticalflow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/channel_orientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace debug {
{
std::vector<Strings> 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;
Expand Down

0 comments on commit 37d3b67

Please sign in to comment.