-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIContoursExtractor.h
More file actions
62 lines (52 loc) · 2.28 KB
/
IContoursExtractor.h
File metadata and controls
62 lines (52 loc) · 2.28 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
/**
* @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_ICONTOURSEXTRACTOR_H
#define SOLAR_ICONTOURSEXTRACTOR_H
#include "xpcf/api/IComponentIntrospect.h"
#include "datastructure/Image.h"
#include "core/Messages.h"
#include "datastructure/GeometryDefinitions.h"
namespace SolAR {
namespace api {
namespace features {
/**
* @class IContoursExtractor
* @brief <B>Extracts contours from an image.</B>
* <TT>UUID: 42d82ab6-cc62-11e7-abc4-cec278b6b50a</TT>
*
* This class provides a contours extraction method from an image.
*/
class XPCF_CLIENTUUID("892788ad-8366-4d79-aec8-92aa4ed34665") XPCF_SERVERUUID("a2e6ed26-7795-407b-b7e6-e04140c8ab80") IContoursExtractor :
virtual public org::bcom::xpcf::IComponentIntrospect {
public:
/// @brief IContoursExtractor default constructor
IContoursExtractor() = default;
/// @brief IContoursExtractor default destructor
virtual ~IContoursExtractor() = default;
/// @brief Extract the contours detected in a vector from a given input image
/// @param[in] inputImg The image on which contours are extracted
/// @param[out] contours The contours extracted from the image
/// @return FrameworkReturnCode::_SUCCESS_ if contours ar well extracted, else FrameworkReturnCode::_ERROR
virtual FrameworkReturnCode extract(const SRef<SolAR::datastructure::Image> inputImg, std::vector<SolAR::datastructure::Contour2Df> & contours) = 0;
};
}
}
} // end of namespace SOLAR
XPCF_DEFINE_INTERFACE_TRAITS(SolAR::api::features::IContoursExtractor,
"42d82ab6-cc62-11e7-abc4-cec278b6b50a",
"IContoursExtractor",
"SolAR::api::features::IContoursExtractor");
#endif // SOLAR_ICONTOURSEXTRACTOR_H