![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include "util/testing.h"#include "exe/gui.h"#include "SiftGPU/SiftGPU.h"#include "feature/sift.h"#include "feature/utils.h"#include "util/math.h"#include "util/opengl_utils.h"#include "util/random.h"Macros | |
| #define | TEST_NAME "feature/sift_test" |
Functions | |
| void | CreateImageWithSquare (const int size, Bitmap *bitmap) |
| BOOST_AUTO_TEST_CASE (TestExtractSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestExtractCovariantSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestExtractCovariantAffineSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestExtractCovariantDSPSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestExtractCovariantAffineDSPSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestExtractSiftFeaturesGPU) | |
| FeatureDescriptors | CreateRandomFeatureDescriptors (const size_t num_features) |
| void | CheckEqualMatches (const FeatureMatches &matches1, const FeatureMatches &matches2) |
| BOOST_AUTO_TEST_CASE (TestCreateSiftGPUMatcherOpenGL) | |
| BOOST_AUTO_TEST_CASE (TestCreateSiftGPUMatcherCUDA) | |
| BOOST_AUTO_TEST_CASE (TestMatchSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestMatchSiftFeaturesCPUFLANNvsBruteForce) | |
| BOOST_AUTO_TEST_CASE (TestMatchGuidedSiftFeaturesCPU) | |
| BOOST_AUTO_TEST_CASE (TestMatchSiftFeaturesGPU) | |
| BOOST_AUTO_TEST_CASE (TestMatchSiftFeaturesCPUvsGPU) | |
| BOOST_AUTO_TEST_CASE (TestMatchGuidedSiftFeaturesGPU) | |
| #define TEST_NAME "feature/sift_test" |
| BOOST_AUTO_TEST_CASE | ( | TestCreateSiftGPUMatcherCUDA | ) |
| BOOST_AUTO_TEST_CASE | ( | TestCreateSiftGPUMatcherOpenGL | ) |
| BOOST_AUTO_TEST_CASE | ( | TestExtractCovariantAffineDSPSiftFeaturesCPU | ) |
| BOOST_AUTO_TEST_CASE | ( | TestExtractCovariantAffineSiftFeaturesCPU | ) |
| BOOST_AUTO_TEST_CASE | ( | TestExtractCovariantDSPSiftFeaturesCPU | ) |
| BOOST_AUTO_TEST_CASE | ( | TestExtractCovariantSiftFeaturesCPU | ) |
| BOOST_AUTO_TEST_CASE | ( | TestExtractSiftFeaturesCPU | ) |
References CreateImageWithSquare(), descriptors, colmap::ExtractSiftFeaturesCPU(), colmap::Bitmap::Height(), M_PI, colmap::Bitmap::Width(), x, and y.
| BOOST_AUTO_TEST_CASE | ( | TestExtractSiftFeaturesGPU | ) |
| BOOST_AUTO_TEST_CASE | ( | TestMatchGuidedSiftFeaturesCPU | ) |
| BOOST_AUTO_TEST_CASE | ( | TestMatchGuidedSiftFeaturesGPU | ) |
References colmap::TwoViewGeometry::config, CreateRandomFeatureDescriptors(), colmap::CreateSiftGPUMatcher(), colmap::TwoViewGeometry::H, colmap::OpenGLContextManager::HasOpenGL(), colmap::TwoViewGeometry::inlier_matches, colmap::MatchGuidedSiftFeaturesGPU(), colmap::SiftMatchingOptions::max_num_matches, colmap::TwoViewGeometry::PLANAR_OR_PANORAMIC, Run(), and colmap::RunThreadWithOpenGLContext().
| BOOST_AUTO_TEST_CASE | ( | TestMatchSiftFeaturesCPU | ) |
References CreateRandomFeatureDescriptors(), and colmap::MatchSiftFeaturesCPU().
| BOOST_AUTO_TEST_CASE | ( | TestMatchSiftFeaturesCPUFLANNvsBruteForce | ) |
References CheckEqualMatches(), CreateRandomFeatureDescriptors(), colmap::SiftMatchingOptions::cross_check, colmap::FeatureDescriptorsToUnsignedByte(), colmap::L2NormalizeFeatureDescriptors(), colmap::MatchSiftFeaturesCPUBruteForce(), colmap::MatchSiftFeaturesCPUFLANN(), colmap::SiftMatchingOptions::max_num_matches, and colmap::SiftMatchingOptions::max_ratio.
| BOOST_AUTO_TEST_CASE | ( | TestMatchSiftFeaturesCPUvsGPU | ) |
References CheckEqualMatches(), CreateRandomFeatureDescriptors(), colmap::CreateSiftGPUMatcher(), colmap::SiftMatchingOptions::cross_check, colmap::FeatureDescriptorsToUnsignedByte(), colmap::OpenGLContextManager::HasOpenGL(), colmap::L2NormalizeFeatureDescriptors(), colmap::MatchSiftFeaturesCPU(), colmap::MatchSiftFeaturesGPU(), colmap::SiftMatchingOptions::max_num_matches, colmap::SiftMatchingOptions::max_ratio, Run(), and colmap::RunThreadWithOpenGLContext().
| BOOST_AUTO_TEST_CASE | ( | TestMatchSiftFeaturesGPU | ) |
| void CheckEqualMatches | ( | const FeatureMatches & | matches1, |
| const FeatureMatches & | matches2 | ||
| ) |
Referenced by BOOST_AUTO_TEST_CASE().
| void CreateImageWithSquare | ( | const int | size, |
| Bitmap * | bitmap | ||
| ) |
References colmap::Bitmap::Allocate(), colmap::Bitmap::Fill(), colmap::Bitmap::SetPixel(), and size.
Referenced by BOOST_AUTO_TEST_CASE().
| FeatureDescriptors CreateRandomFeatureDescriptors | ( | const size_t | num_features | ) |
References descriptors, colmap::FeatureDescriptorsToUnsignedByte(), colmap::L2NormalizeFeatureDescriptors(), colmap::RandomReal(), and colmap::SetPRNGSeed().
Referenced by BOOST_AUTO_TEST_CASE().