MeVisLab Toolbox Reference
mlConvexHull2D.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2016, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
16 #include <mlVector2.h>
17 #include <vector>
18 
19 ML_START_NAMESPACE
20 
21 namespace ConvexHull2D
22 {
25  MLPOINTCLOUDUTILS_EXPORT std::vector<Vector2> createConvexHull(std::vector<Vector2> points);
26 
33  MLPOINTCLOUDUTILS_EXPORT std::vector<Vector2> createConvexHullFromSortedPoints(const std::vector<Vector2>& points);
34 }
35 
36 ML_END_NAMESPACE
#define MLPOINTCLOUDUTILS_EXPORT
MLPOINTCLOUDUTILS_EXPORT std::vector< Vector2 > createConvexHullFromSortedPoints(const std::vector< Vector2 > &points)
Calculates the convex hull of the given sorted points.
MLPOINTCLOUDUTILS_EXPORT std::vector< Vector2 > createConvexHull(std::vector< Vector2 > points)
Calculates the convex hull of the given points.