IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Shape2dUtils.h
Go to the documentation of this file.
1 // Shape2dUtils.h:
3 // ---------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_SHAPE2DUTILS_H__
16 #define __IPSDKGEOMETRY_SHAPE2DUTILS_H__
17 
20 #include <boost/filesystem/path.hpp>
21 
22 namespace ipsdk {
23 namespace geom {
24 
27 
32 getNbPolygons(const Shape2d& shape2d);
33 
37 getNbPolygons(const Shape2dVector& shape2dVector);
38 
43 getPolygonMaxNbPoints(const Shape2d& shape2d);
44 
48 getPolygonMaxNbPoints(const Shape2dVector& shape2dVector);
49 
53 writeToCsv(const boost::filesystem::path& filePath,
54  const Shape2d& shape2d);
55 
60 writeToCsv(const boost::filesystem::path& filePath,
61  const Shape2dVector& shape2dVector);
62 
65 
66 } // end of namespace geom
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKGEOMETRY_SHAPE2DUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::vector< Shape2dPtr > Shape2dVector
collection of shape 2d shared pointers
Definition: Shape2dTypes.h:42
IPSDKGEOMETRY_API bool writeToCsv(const boost::filesystem::path &filePath, const Shape2d &shape2d)
function allowing to write polygons of a shape into a csv file
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
IPSDKGEOMETRY_API ipUInt32 getNbPolygons(const Shape2d &shape2d)
Predefined types for shape 2d management.
IPSDKGEOMETRY_API ipUInt32 getPolygonMaxNbPoints(const Shape2d &shape2d)
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53