-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIImageMatcher.h
More file actions
78 lines (65 loc) · 3.07 KB
/
IImageMatcher.h
File metadata and controls
78 lines (65 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* @copyright Copyright (c) 2017 B-com http://www.b-com.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef IIMAGEMATCHER_H
#define IIMAGEMATCHER_H
#include <xpcf/api/IComponentIntrospect.h>
#include "datastructure/Image.h"
#include "datastructure/Keypoint.h"
#include "datastructure/DescriptorBuffer.h"
#include "datastructure/DescriptorMatch.h"
#include "core/Messages.h"
namespace SolAR {
namespace api {
namespace features {
/**
* @class IImageMatcher
* @brief <B>Matches keypoint between two input images.</B>
* <TT>UUID: 157ec340-0682-4e6c-bf69-e4d95fa760d3</TT>
*
* This class provides a keypoint matching method between directly from two images.
*/
class XPCF_CLIENTUUID("0fcb5bf1-7251-4c7d-a3cc-3da7b4c306f4") XPCF_SERVERUUID("6b8f3e75-1745-45aa-a3bc-ac9c76c4d7db") IImageMatcher:
virtual public org::bcom::xpcf::IComponentIntrospect
{
public:
/// @brief IDescriptorsExtractorFromImage default constructor
IImageMatcher() = default;
virtual ~IImageMatcher() {};
/// @brief match keypoints between two input images.
/// @param[in] image1, the first image.
/// @param[in] image2, the second image.
/// @param[out] keypoints1, The keypoints detected in the first image.
/// @param[out] keypoints2, The keypoints detected in the second image.
/// @param[out] descriptors1, The descriptors of keypoint of image1.
/// @param[out] descriptors2, The descriptors of keypoint of image1.
/// @param[out] matches, the keypoint matches between the first and second image
/// @return FrameworkReturnCode::_SUCCESS_ if images are well matched, else FrameworkReturnCode::_ERROR
virtual FrameworkReturnCode match( const SRef<SolAR::datastructure::Image> image1,
const SRef<SolAR::datastructure::Image> image2,
std::vector<SolAR::datastructure::Keypoint> & keypoints1,
std::vector<SolAR::datastructure::Keypoint> & keypoints2,
SRef<SolAR::datastructure::DescriptorBuffer> descriptors1,
SRef<SolAR::datastructure::DescriptorBuffer> descriptors2,
std::vector<SolAR::datastructure::DescriptorMatch> & matches) = 0;
};
}
}
} // end of namespace SolAR
XPCF_DEFINE_INTERFACE_TRAITS(SolAR::api::features::IImageMatcher,
"157ec340-0682-4e6c-bf69-e4d95fa760d3",
"IImageMatcher",
"IImageMatcher interface description");
#endif // IIMAGEMATCHER_H