Skip to content

Commit

Permalink
Build warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodAxe committed Aug 17, 2012
1 parent fe8f4b9 commit 017e190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CollectedStatistics.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#include "CollectedStatistics.hpp"

#include <strstream>
#include <sstream>
#include <iostream>
#include <iterator>
#include <numeric>

template<typename T>
std::string quote(const T& t)
{
std::ostrstream quoteStr;
std::ostringstream quoteStr;
quoteStr << "\"" << t << "\"";
return quoteStr.str();
}

std::ostream& tab(std::ostream& str)
{
return str << tab;
return str << "\t";
}

std::ostream& null(std::ostream& str)
Expand Down
9 changes: 3 additions & 6 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ int main(int argc, const char* argv[])
std::vector<cv::Ptr<ImageTransformation> > transformations;

// Initialize list of algorithm tuples:

algorithms.push_back(FeatureAlgorithm("SURF-FREAK",
new cv::SurfFeatureDetector(),
new cv::FREAK(),
new cv::BFMatcher(cv::NORM_HAMMING)));

algorithms.push_back(FeatureAlgorithm("ORB-FREAK",
new cv::OrbFeatureDetector(),
new cv::FREAK(),
Expand All @@ -42,14 +41,12 @@ int main(int argc, const char* argv[])
new cv::ORB(500, 1.2f, 8, 31, 0, 4),
new cv::ORB(500, 1.2f, 8, 31, 0, 4),
new cv::BFMatcher(cv::NORM_HAMMING2, false)));


algorithms.push_back(FeatureAlgorithm("FAST+BRIEF",
new cv::FastFeatureDetector(50),
new cv::BriefDescriptorExtractor(),
new cv::BFMatcher(cv::NORM_HAMMING, false)));


algorithms.push_back(FeatureAlgorithm("SURF-BruteForce",
new cv::SurfFeatureDetector(),
new cv::SurfDescriptorExtractor(),
Expand All @@ -59,12 +56,12 @@ int main(int argc, const char* argv[])
new cv::SurfFeatureDetector(),
new cv::SurfDescriptorExtractor(),
new cv::FlannBasedMatcher()));

/**/
// Initialize list of used transformations:
transformations.push_back(new GaussianBlurTransform(9));
transformations.push_back(new BrightnessImageTransform(-127, +127,1));
transformations.push_back(new ImageRotationTransformation(0, 360, 1, cv::Point2f(0.5f,0.5f)));
transformations.push_back(new ImageScalingTransformation(0.25, 2, 0.01));
transformations.push_back(new ImageScalingTransformation(0.25f, 2f, 0.01f));

if (argc < 2)
{
Expand Down

0 comments on commit 017e190

Please sign in to comment.