-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathICornerRefinement.h
More file actions
68 lines (55 loc) · 2.19 KB
/
ICornerRefinement.h
File metadata and controls
68 lines (55 loc) · 2.19 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
/**
* @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 SOLAR_ICORNERREFINEMENT_H
#define SOLAR_ICORNERREFINEMENT_H
#include <vector>
#include "core/Messages.h"
#include "datastructure/Image.h"
#include "datastructure/GeometryDefinitions.h"
#include <xpcf/core/helpers.h>
// Definition of ICornerRefinement Class //
// part of SolAR namespace //
#include <xpcf/api/IComponentIntrospect.h>
namespace SolAR {
namespace api {
namespace features {
/**
* @class ICornerRefinement
* @brief <B>Refine the corner locations.</B>
* <TT>UUID: 6ed0413a-751e-4c33-b91b-97b3ea949bc2</TT>
*
* This class provides a method to refine the corner locations.
*/
class XPCF_IGNORE ICornerRefinement :
virtual public org::bcom::xpcf::IComponentIntrospect {
public:
/// @brief ICornerRefinement default constructor
ICornerRefinement() = default;
/// @brief ICornerRefinement default destructor
virtual ~ICornerRefinement() = default;
/// @brief This method refines the corner locations
/// @param[in] image Input image on which we are extracting keypoints.
/// @param[in,out] corners Initial coordinates of the input corners and refined coordinates provided for output.
virtual void refine(const SRef<SolAR::datastructure::Image> image, std::vector<SolAR::datastructure::Point2Df> & corners) = 0;
};
}
}
} // end of namespace SolAR
XPCF_DEFINE_INTERFACE_TRAITS(SolAR::api::features::ICornerRefinement,
"6ed0413a-751e-4c33-b91b-97b3ea949bc2",
"ICornerRefinement",
"SolAR::api::features::ICornerRefinement");
#endif // SOLAR_ICORNERREFINEMENT_H