8#ifndef META_OCEAN_TRACKING_MAPBUILDING_RELOCALIZER_STEREO_H
9#define META_OCEAN_TRACKING_MAPBUILDING_RELOCALIZER_STEREO_H
43 public Singleton<RelocalizerDebugElements>
105 bool relocalize(
const AnyCamera& cameraA,
const AnyCamera& cameraB,
const HomogenousMatrix4& device_T_cameraA,
const HomogenousMatrix4& device_T_cameraB,
const Frame& yFrameA,
const Frame& yFrameB,
HomogenousMatrix4& world_T_device,
const unsigned int minimalNumberCorrespondences,
const Scalar maximalProjectionError,
const Scalar inlierRate =
Scalar(0.15),
const HomogenousMatrix4& world_T_roughDevice =
HomogenousMatrix4(
false),
Worker* worker =
nullptr,
size_t* usedFeatureCorrespondences =
nullptr,
Indices32* usedObjectPointIdsA =
nullptr,
Indices32* usedObjectPointIdsB =
nullptr,
Vectors2* usedImagePointsA =
nullptr,
Vectors2* usedImagePointsB =
nullptr);
117 *
this = std::move(relocalizerStereo);
DebugElements()
Protected default constructor.
Definition DebugElements.h:312
This class implements Ocean's image class.
Definition Frame.h:1969
Singleton & operator=(const Singleton< RelocalizerDebugElements > &singleton)=delete
Relocalizer & operator=(Relocalizer &&relocalizer)
Move operator.
Relocalizer()=default
Default constructor.
std::function< bool(const AnyCamera &camera, const Frame &yFrame, Vectors2 &imagePoints, SharedUnifiedDescriptors &imagePointDescriptors)> ImageFeaturePointDetectorFunction
Definition of a function which detects and describes feature points in a given image.
Definition Relocalizer.h:42
This class implements a container for debug elements.
Definition RelocalizerStereo.h:44
ElementId
Definition of several debug elements.
Definition RelocalizerStereo.h:53
@ EI_INVALID
An invalid element id.
Definition RelocalizerStereo.h:55
@ EI_CAMERA_IMAGES_WITH_FEATURES
A camera images with image features.
Definition RelocalizerStereo.h:58
@ EI_CAMERA_IMAGES_WITH_FEATURE_CORRESPONDENCES
A camera images with feature correspondences.
Definition RelocalizerStereo.h:61
RelocalizerStereo(ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction)
Creates a new relocalizer object.
RelocalizerStereo & operator=(RelocalizerStereo &&relocalizerStereo)
Move operator.
Definition RelocalizerStereo.h:120
bool relocalize(const AnyCamera &cameraA, const AnyCamera &cameraB, const HomogenousMatrix4 &device_T_cameraA, const HomogenousMatrix4 &device_T_cameraB, const Frame &yFrameA, const Frame &yFrameB, HomogenousMatrix4 &world_T_device, const unsigned int minimalNumberCorrespondences, const Scalar maximalProjectionError, const Scalar inlierRate=Scalar(0.15), const HomogenousMatrix4 &world_T_roughDevice=HomogenousMatrix4(false), Worker *worker=nullptr, size_t *usedFeatureCorrespondences=nullptr, Indices32 *usedObjectPointIdsA=nullptr, Indices32 *usedObjectPointIdsB=nullptr, Vectors2 *usedImagePointsA=nullptr, Vectors2 *usedImagePointsB=nullptr)
Relocalizes a given frame.
RelocalizerStereo()=default
Creates a new relocalizer object.
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition Base.h:96
std::vector< Vector2 > Vectors2
Definition of a vector holding Vector2 objects.
Definition Vector2.h:64
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
AnyCameraT< Scalar > AnyCamera
Definition of an AnyCamera object with Scalar precision.
Definition AnyCamera.h:31
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the Map Building Tracking library.
Definition DescriptorHandling.h:25
Namespace of the Tracker library.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15