-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIProject.h
More file actions
81 lines (65 loc) · 3.32 KB
/
IProject.h
File metadata and controls
81 lines (65 loc) · 3.32 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
79
80
/**
* @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_IPROJECT_H
#define SOLAR_IPROJECT_H
#include "xpcf/api/IComponentIntrospect.h"
#include "core/Messages.h"
#include "datastructure/CameraDefinitions.h"
#include "datastructure/CloudPoint.h"
namespace SolAR {
namespace api {
namespace geom {
/**
* @class IProject
* @brief <B>Projects 3D points on a 2D image plane.</B>
* <TT>UUID: b485f37d-a8ea-49f6-b361-f2b30777d9ba</TT>
*/
class XPCF_CLIENTUUID("64351b8a-7801-4ca9-841f-a4254506abc3") XPCF_SERVERUUID("8edec0aa-8547-49b0-a1a5-0eb148e44386") IProject :
virtual public org::bcom::xpcf::IComponentIntrospect {
public:
/// @brief IProjection default constructor
IProject() = default;
/// @brief I3DTransform default destructor
virtual ~IProject() = default;
/// @brief This method project a set of 3D points in the image plane
/// @param[in] inputPoints the set of 3D points to project
/// @param[in] pose the 3D pose of the camera (a 4x4 float matrix)
/// @param[in] camParams the camera parameters.
/// @param[out] imagePoints the resulting set of 2D points defined in the image coordinate systemn
/// @return FrameworkReturnCode::_SUCCESS_ if 3D projection succeed, else FrameworkReturnCode::_ERROR.
virtual FrameworkReturnCode project(const std::vector<SolAR::datastructure::Point3Df> & inputPoints,
const SolAR::datastructure::Transform3Df& pose,
const SolAR::datastructure::CameraParameters & camParams,
std::vector<SolAR::datastructure::Point2Df> & imagePoints) = 0;
/// @brief This method project a set of 3D cloud points in the image plane
/// @param[in] inputPoints the set of 3D cloud points to project
/// @param[in] pose the 3D pose of the camera (a 4x4 float matrix)
/// @param[in] camParams the camera parameters.
/// @param[out] imagePoints the resulting set of 2D points defined in the image coordinate systemn
/// @return FrameworkReturnCode::_SUCCESS_ if 3D projection succeed, else FrameworkReturnCode::_ERROR.
virtual FrameworkReturnCode project(const std::vector<SRef<SolAR::datastructure::CloudPoint>> & inputPoints,
const SolAR::datastructure::Transform3Df& pose,
const SolAR::datastructure::CameraParameters & camParams,
std::vector<SolAR::datastructure::Point2Df> & imagePoints) = 0;
};
}
}
}
XPCF_DEFINE_INTERFACE_TRAITS(SolAR::api::geom::IProject,
"b485f37d-a8ea-49f6-b361-f2b30777d9ba",
"IProjection",
"SolAR::api::geom::IProject");
#endif //SOLAR_IPROJECT_H