IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
PolygonSegmentationUtils.h
Go to the documentation of this file.
1 // PolygonSegmentationUtils.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKBASESHAPESEGMENTATION_POLYGONSEGMENTATIONUTILS_H__
16 #define __IPSDKBASESHAPESEGMENTATION_POLYGONSEGMENTATIONUTILS_H__
17 
20 
21 namespace ipsdk {
22 namespace shape {
23 namespace segmentation {
24 
27 
33  ipUInt32& firstPointIndex,
34  ipUInt32& secondPointIndex);
35 
42  PolygonPointInfoMap& polygonPointInfoMap);
43 
51 
59 
70 
73 
74 } // end of namespace segmentation
75 } // end of namespace shape
76 } // end of namespace ipsdk
77 
78 #endif // __IPSDKBASESHAPESEGMENTATION_POLYGONSEGMENTATIONUTILS_H__
IPSDKBASESHAPESEGMENTATION_API void removeAlignedPoints(ipsdk::geom::Shape2dPolygon &polygon)
function allowing to remove consecutive aligned points from polygon
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::multimap< ipsdk::geom::Shape2dPoint, PolygonPointInfo > PolygonPointInfoMap
map associating point coordinates to polygon point informations
Definition: PolygonSegmentationTypes.h:55
IPSDKBASESHAPESEGMENTATION_API void extractLocalPointInfo(const ipsdk::geom::Shape2dPolygonWithHolesPtr &pPolygon, PolygonPointInfoMap &polygonPointInfoMap)
function allowing to extract local informations around polygon points
Closed polygon potentially associated to interior polygonal holes.
Definition: PolygonWithHoles2d.h:40
Closed polygon associated to an ordered collection of 2d points.
Definition: Polygon2d.h:38
Predefined types for polygon segmentation management.
Definition of import/export macro for library.
IPSDKBASESHAPESEGMENTATION_API void normalize(ipsdk::geom::Shape2dPolygonWithHoles &polygonWithHoles)
function allowing to normalize a polygon to ensure that :
IPSDKBASESHAPESEGMENTATION_API bool detectSelfIntersectingPoint(const ipsdk::geom::Shape2dPolygon &polygon, ipUInt32 &firstPointIndex, ipUInt32 &secondPointIndex)
function allowing to detect first self intersecting points into a polygon
#define IPSDKBASESHAPESEGMENTATION_API
Import/Export macro for library IPSDKBaseShapeSegmentation.
Definition: IPSDKBaseShapeSegmentationExports.h:25
IPSDKBASESHAPESEGMENTATION_API bool hasAlignedPoints(const ipsdk::geom::Shape2dPolygon &polygon)
function allowing to check whether a polygon contains aligned points
boost::shared_ptr< Shape2dPolygonWithHoles > Shape2dPolygonWithHolesPtr
shared pointer to polygon with holes associated to shape
Definition: Shape2dTypes.h:69
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53