-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
568 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (C) 2018 Swift Navigation Inc. | ||
* Contact: Swift Navigation <[email protected]> | ||
* | ||
* This source is subject to the license found in the file 'LICENSE' which must | ||
* be distributed together with this source. All other rights reserved. | ||
* | ||
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, | ||
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED | ||
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. | ||
*/ | ||
|
||
#ifndef ALBATROSS_CORE_DECLARATIONS_H | ||
#define ALBATROSS_CORE_DECLARATIONS_H | ||
|
||
#include <map> | ||
#include <vector> | ||
#include <functional> | ||
|
||
namespace albatross { | ||
template <typename FeatureType> class RegressionModel; | ||
template <typename FeatureType> class RegressionDataset; | ||
template <typename FeatureType, typename FitType> class SerializableRegressionModel; | ||
template <typename ModelType, typename FeatureType> class GenericRansac; | ||
|
||
using FoldIndices = std::vector<std::size_t>; | ||
using FoldName = std::string; | ||
using FoldIndexer = std::map<FoldName, FoldIndices>; | ||
template <typename FeatureType> using IndexerFunction = std::function<FoldIndexer(const RegressionDataset<FeatureType> &)>; | ||
|
||
template <typename FeatureType, typename ModelType> | ||
std::unique_ptr<GenericRansac<ModelType, FeatureType>> | ||
make_generic_ransac_model(ModelType *model, | ||
double inlier_threshold, std::size_t min_inliers, | ||
std::size_t min_features, std::size_t max_iterations, | ||
const IndexerFunction<FeatureType> &indexer_function); | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.