Skip to content

Commit

Permalink
[SVG] Refactor svgDrawer openMVG#1658
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Feb 2, 2023
1 parent 358f0df commit 44a6e56
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 281 deletions.
2 changes: 1 addition & 1 deletion src/openMVG/features/sift/sift_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "openMVG/features/sift/SIFT_Anatomy_Image_Describer.hpp"
#include "openMVG/image/image_io.hpp"
#include "openMVG/system/timer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "testing/testing.h"

Expand Down
2 changes: 1 addition & 1 deletion src/openMVG/matching/svg_matches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <openMVG/matching/svg_matches.hpp>
#include <openMVG/features/feature.hpp>
#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

namespace openMVG {
namespace matching {
Expand Down
2 changes: 1 addition & 1 deletion src/openMVG/multiview/translation_averaging_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#include "openMVG/multiview/test_data_sets.hpp"
#include "openMVG/multiview/translation_averaging_common.hpp"
#include "openMVG/numeric/numeric.h"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "testing/testing.h"
#include "openMVG/vector_graphics/svgDrawer.hpp"

int modifiedMod
(
Expand Down
2 changes: 1 addition & 1 deletion src/openMVG/numeric/lm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include "openMVG/numeric/numeric.h"
#include "openMVG/numeric/lm.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "testing/testing.h"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <unsupported/Eigen/NonLinearOptimization>
#include <unsupported/Eigen/NumericalDiff>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include "openMVG/robust_estimation/robust_estimator_ACRansac.hpp"
#include "openMVG/robust_estimation/robust_estimator_lineKernel_test.hpp"
#include "openMVG/numeric/extract_columns.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "testing/testing.h"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <iterator>
#include <random>
Expand Down
2 changes: 1 addition & 1 deletion src/openMVG/sfm/sfm_report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#include <vector>

#include "openMVG/sfm/sfm_data.hpp"
#include "openMVG/vector_graphics/svgHistogram.hpp"

#include "third_party/histogram/histogram.hpp"
#include "third_party/htmlDoc/htmlDoc.hpp"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "openMVG/vector_graphics/svgHistogram.hpp"

namespace openMVG {
namespace sfm {
Expand Down
2 changes: 1 addition & 1 deletion src/openMVG_Samples/features_kvld_filter/kvld_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "third_party/cmdLine/cmdLine.h"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <cstdlib>
#include <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "third_party/cmdLine/cmdLine.h"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <fstream>
#include <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "openMVG/robust_estimation/robust_estimator_ACRansacKernelAdaptator.hpp"

#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <string>
#include <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "openMVG/robust_estimation/robust_estimator_ACRansac.hpp"
#include "openMVG/robust_estimation/robust_estimator_ACRansacKernelAdaptator.hpp"

#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"

#include <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include "openMVG/robust_estimation/robust_estimator_ACRansac.hpp"
#include "openMVG/robust_estimation/robust_estimator_ACRansacKernelAdaptator.hpp"
#include "openMVG/types.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "third_party/cmdLine/cmdLine.h"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <cstdlib>
#include <iostream>
Expand Down
7 changes: 4 additions & 3 deletions src/software/SfM/main_ComputeVLAD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
#include "openMVG/stl/stl.hpp"
#include "openMVG/system/loggerprogress.hpp"
#include "openMVG/system/timer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "third_party/cmdLine/cmdLine.h"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "third_party/vectorGraphics/svgDrawer.hpp"


#include <cstdlib>
#include <iostream>
Expand Down Expand Up @@ -62,7 +63,7 @@ void saveRetrievalMatrix(
const std::string ref_view_filename =
stlplus::create_filespec(sfm_data.s_root_path, ref_view->s_Img_path);

svg_stream.drawImage(ref_view_filename, size, size, x_offset * size,
svg_stream << svg::drawImage(ref_view_filename, size, size, x_offset * size,
y_offset * size);

const auto &retrieval_list = result_it.second;
Expand All @@ -74,7 +75,7 @@ void saveRetrievalMatrix(
const std::string found_view_filename = stlplus::create_filespec(
sfm_data.s_root_path, found_view->s_Img_path);

svg_stream.drawImage(found_view_filename, size, size, x_offset * size,
svg_stream << svg::drawImage(found_view_filename, size, size, x_offset * size,
y_offset * size);
}
x_offset = 0;
Expand Down
3 changes: 1 addition & 2 deletions src/software/SfM/main_ListMatchingPairs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
#include "openMVG/sfm/sfm_data.hpp"
#include "openMVG/sfm/sfm_data_io.hpp"
#include "openMVG/system/loggerprogress.hpp"

#include "openMVG/system/timer.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include "third_party/cmdLine/cmdLine.h"
#include "third_party/stlplus3/filesystemSimplified/file_system.hpp"
#include "openMVG/vector_graphics/svgDrawer.hpp"

#include <cstdlib>
#include <string>
Expand Down
Loading

0 comments on commit 44a6e56

Please sign in to comment.