gstlearn
1.0.0
CCC
|
#include "gstlearn_export.hpp"
#include "Basic/AStringable.hpp"
#include "Basic/ASerializable.hpp"
#include "Basic/VectorNumT.hpp"
#include "Basic/VectorHelper.hpp"
#include "Basic/NamingConvention.hpp"
Classes | |
struct | PolyPoint2D |
class | PolyLine2D |
Functions | |
double | distanceBetweenPolylines (const PolyLine2D &poly1, const PolyLine2D &poly2, const PolyPoint2D &pldist1, const PolyPoint2D &pldist2) |
GSTLEARN_EXPORT int | dbUnfoldPolyline (Db *db, const PolyLine2D &polyline, const NamingConvention &namconv=NamingConvention("Unfold")) |
GSTLEARN_EXPORT int | dbFoldPolyline (DbGrid *dbin, Db *dbout, const VectorInt &cols, const PolyLine2D &polyline, const NamingConvention &namconv=NamingConvention("Fold")) |
GSTLEARN_EXPORT int | dbFromPolylines (Db *db, const PolyLine2D &top, const PolyLine2D &bot, int nb_neigh=0, bool flagMask=true, const NamingConvention &namconv=NamingConvention("Lines")) |
GSTLEARN_EXPORT int dbFoldPolyline | ( | DbGrid * | dbin, |
Db * | dbout, | ||
const VectorInt & | cols, | ||
const PolyLine2D & | polyline, | ||
const NamingConvention & | namconv | ||
) |
Fold an input Db into an output Db with respect to a polyline
[in] | dbin | Input Db structure |
[in] | dbout | Output Db structure |
[in] | cols | Vector of the target variable ranks |
[in] | polyline | PolyLine2D structure |
[in] | namconv | Naming convention |
GSTLEARN_EXPORT int dbFromPolylines | ( | Db * | db, |
const PolyLine2D & | top, | ||
const PolyLine2D & | bot, | ||
int | nb_neigh, | ||
bool | flagMask, | ||
const NamingConvention & | namconv | ||
) |
Calculate quantities on the Db by comparison with top and bottom polylines
db | Pointer to the Db where relevant information will be stored |
top | 2-D Polyline defining the Top surface |
bot | 2-D Polyline defining the Bottom surface |
nb_neigh | Size of neighborhood radius (for regularizing the angle calculation) |
flagMask | Mask if the target is outside the two polylines |
namconv | Naming convention |
GSTLEARN_EXPORT int dbUnfoldPolyline | ( | Db * | db, |
const PolyLine2D & | polyline, | ||
const NamingConvention & | namconv | ||
) |
Unfold a 2-D Db with respect to a polyline
[in] | db | Db structure |
[in] | polyline | PolyLine2D structure |
[in] | namconv | Naming convention |
double distanceBetweenPolylines | ( | const PolyLine2D & | poly1, |
const PolyLine2D & | poly2, | ||
const PolyPoint2D & | pldist1, | ||
const PolyPoint2D & | pldist2 | ||
) |