Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid circular dependency #839

Merged
merged 7 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/aliceVision/feature/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ set(features_files_headers
Descriptor.hpp
feature.hpp
FeaturesPerView.hpp
Hamming.hpp
ImageDescriber.hpp
imageDescriberCommon.hpp
KeypointSet.hpp
metric.hpp
PointFeature.hpp
Regions.hpp
regionsFactory.hpp
RegionsPerView.hpp
selection.hpp
svgVisualization.hpp
)

# Sources
Expand All @@ -34,8 +34,6 @@ set(features_files_sources
FeaturesPerView.cpp
ImageDescriber.cpp
imageDescriberCommon.cpp
selection.cpp
svgVisualization.cpp
)

# CCTAG ImageDescriber
Expand Down Expand Up @@ -92,3 +90,4 @@ endif()

# Unit tests
alicevision_add_test(features_test.cpp NAME "features" LINKS aliceVision_feature)
alicevision_add_test(metric_test.cpp NAME "descriptor_metric" LINKS aliceVision_feature)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include <aliceVision/matching/metric.hpp>
#include "metric.hpp"

#include <bitset>

Expand All @@ -29,7 +29,7 @@ typedef unsigned __int64 uint64_t;
// For maximal performance SSE4 must be enable for builtin popcount activation.

namespace aliceVision {
namespace matching {
namespace feature {

#undef PLATFORM_64_BIT
#undef PLATFORM_32_BIT
Expand Down Expand Up @@ -180,5 +180,5 @@ struct SquaredHamming
}
};

} // namespace matching
} // namespace feature
} // namespace aliceVision
6 changes: 3 additions & 3 deletions src/aliceVision/feature/Regions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <aliceVision/numeric/numeric.hpp>
#include <aliceVision/feature/PointFeature.hpp>
#include <aliceVision/feature/Descriptor.hpp>
#include <aliceVision/matching/metric.hpp>
#include <aliceVision/feature/metric.hpp>

#include <string>
#include <cstddef>
Expand Down Expand Up @@ -152,13 +152,13 @@ struct SquaredMetric;
template<typename T>
struct SquaredMetric<T, ERegionType::Scalar>
{
using Metric = matching::L2_Vectorized<T>;
using Metric = L2_Vectorized<T>;
};

template<typename T>
struct SquaredMetric<T, ERegionType::Binary>
{
using Metric = matching::SquaredHamming<T>;
using Metric = SquaredHamming<T>;
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

#pragma once

#include "aliceVision/matching/Hamming.hpp"
#include "aliceVision/numeric/Accumulator.hpp"
#include "Hamming.hpp"

#include <aliceVision/numeric/Accumulator.hpp>
#include <aliceVision/config.hpp>

#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_SSE)
Expand All @@ -18,8 +19,9 @@

#include <cstddef>


namespace aliceVision {
namespace matching {
namespace feature {

/// Squared Euclidean distance functor.
template<class T>
Expand Down Expand Up @@ -136,5 +138,5 @@ struct L2_Vectorized<float>

#endif // ALICEVISION_HAVE_SSE

} // namespace matching
} // namespace feature
} // namespace aliceVision
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.

#include "aliceVision/matching/metric.hpp"
#include <aliceVision/feature/metric.hpp>

#include <iostream>
#include <string>

Expand All @@ -16,7 +17,7 @@

using namespace std;
using namespace aliceVision;
using namespace matching;
using namespace feature;

template<typename Metric>
typename Metric::ResultType DistanceT()
Expand Down
175 changes: 0 additions & 175 deletions src/aliceVision/feature/selection.cpp

This file was deleted.

72 changes: 0 additions & 72 deletions src/aliceVision/feature/selection.hpp

This file was deleted.

3 changes: 3 additions & 0 deletions src/aliceVision/geometry/Pose3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class Pose3
pose._rotation = _rotation * R.transpose();
return pose;
}

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

/**
Expand Down
Loading