15 #ifndef __IPSDKBASESHAPESEGMENTATION_POLYGONSEGMENTATIONUTILS_H__ 16 #define __IPSDKBASESHAPESEGMENTATION_POLYGONSEGMENTATIONUTILS_H__ 23 namespace segmentation {
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