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);
This class implements the abstract base class for all AnyCamera objects.
Definition: AnyCamera.h:130
This class implements the base class for a container for debug elements.
Definition: DebugElements.h:29
This class implements Ocean's image class.
Definition: Frame.h:1792
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
This class base class for all relocalizers.
Definition: Relocalizer.h:31
Relocalizer & operator=(Relocalizer &&relocalizer)
Move operator.
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_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
This class implements a relocalizer for stereo cameras.
Definition: RelocalizerStereo.h:35
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
float Scalar
Definition of a scalar type.
Definition: Math.h:128
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:37
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15