Classes | |
class | CalcMigrate |
Functions | |
GSTLEARN_EXPORT int | migrate (Db *dbin, Db *dbout, const String &name, int dist_type=1, const VectorDouble &dmax=VectorDouble(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate", false)) |
GSTLEARN_EXPORT int | migrateMulti (Db *dbin, Db *dbout, const VectorString &names, int dist_type=1, const VectorDouble &dmax=VectorDouble(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate")) |
GSTLEARN_EXPORT int | migrateByAttribute (Db *dbin, Db *dbout, const VectorInt &iatts=VectorInt(), int dist_type=1, const VectorDouble &dmax=VectorDouble(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate")) |
GSTLEARN_EXPORT int | migrateByLocator (Db *dbin, Db *dbout, const ELoc &locatorType, int dist_type=1, const VectorDouble &dmax=VectorDouble(), bool flag_fill=false, bool flag_inter=false, bool flag_ball=false, const NamingConvention &namconv=NamingConvention("Migrate")) |
GSTLEARN_EXPORT int | manageExternalInformation (int mode, const ELoc &locatorType, Db *dbin, Db *dbout, bool *flag_created) |
GSTLEARN_EXPORT int | interpolateVariableToPoint (DbGrid *db_grid, int iatt, int np, const double *xp, const double *yp, const double *zp, double *tab) |
GSTLEARN_EXPORT double * | dbgridLineSampling (DbGrid *dbgrid, const double *x1, const double *x2, int ndisc, int ncut, const double *cuts, int *nval_ret) |
GSTLEARN_EXPORT int | expandPointToGrid (Db *db_point, DbGrid *db_grid, int iatt, int iatt_time, int iatt_angle, int iatt_scaleu, int iatt_scalev, int iatt_scalew, int flag_index, int distType, const VectorDouble &dmax, VectorDouble &tab) |
GSTLEARN_EXPORT int | pointToBlock (Db *dbpoint, DbGrid *dbgrid, int option, int flag_size, int iatt_time, int iatt_size, int iatt_angle, int iatt_scaleu, int iatt_scalev, int iatt_scalew) |
GSTLEARN_EXPORT int | migrateGridToCoor (const DbGrid *db_grid, int iatt, const VectorVectorDouble &coords, VectorDouble &tab) |
GSTLEARN_EXPORT int | expandPointToCoor (const Db *db1, int iatt, const VectorVectorDouble &coords, VectorDouble &tab) |
GSTLEARN_EXPORT double* dbgridLineSampling | ( | DbGrid * | dbgrid, |
const double * | x1, | ||
const double * | x2, | ||
int | ndisc, | ||
int | ncut, | ||
const double * | cuts, | ||
int * | nval_ret | ||
) |
Sampling vertices within a Grid between two points
[in] | dbgrid | reference Grid |
[in] | x1 | Array giving the coordinates of the first point |
[in] | x2 | Array giving the coordinates of the second point |
[in] | ndisc | Number of discretized points in the segment |
[in] | ncut | Number of cutoffs |
[in] | cuts | Array of cutoffs |
[out] | nval_ret | Number of samples in the output array |
TODO FUTURE_REFACTOR
GSTLEARN_EXPORT int expandPointToCoor | ( | const Db * | db1, |
int | iatt, | ||
const VectorVectorDouble & | coords, | ||
VectorDouble & | tab | ||
) |
Expands a variable from one point Db into a variable at points defined by coordinate vectors (maximum 3D)
[in] | db1 | descriptor of the input parameters |
[in] | iatt | rank of the input attribute |
[in] | coords | Array of coordinates |
[out] | tab | Output array (Dimension: number of discretized points) |
GSTLEARN_EXPORT int expandPointToGrid | ( | Db * | db_point, |
DbGrid * | db_grid, | ||
int | iatt, | ||
int | iatt_time, | ||
int | iatt_angle, | ||
int | iatt_scaleu, | ||
int | iatt_scalev, | ||
int | iatt_scalew, | ||
int | flag_index, | ||
int | distType, | ||
const VectorDouble & | dmax, | ||
VectorDouble & | tab | ||
) |
Expands a variable from the point structure into a variable in the grid structure
[in] | db_point | Descriptor of the point parameters |
[in] | db_grid | Descriptor of the grid parameters |
[in] | iatt | Rank of the point attribute |
[in] | iatt_time | Optional variable for Time shift |
[in] | iatt_angle | Optional variable for anisotropy angle (around Z) |
[in] | iatt_scaleu | Optional variable for anisotropy scale factor (U) |
[in] | iatt_scalev | Optional variable for anisotropy scale factor (V) |
[in] | iatt_scalew | Optional variable for anisotropy scale factor (W) |
[in] | flag_index | 1 if the Index must be assigned to grid node 0 the 'iatt' attribute is assigned instead |
[in] | distType | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[out] | tab | Output array |
GSTLEARN_EXPORT int interpolateVariableToPoint | ( | DbGrid * | db_grid, |
int | iatt, | ||
int | np, | ||
const double * | xp, | ||
const double * | yp, | ||
const double * | zp, | ||
double * | tab | ||
) |
Interpolate a variable from a grid Db on discretization points
[in] | db_grid | Descriptor of the grid parameters |
[in] | iatt | Rank of the attribute in db_grid |
[in] | np | Number of discretized points |
[in] | xp | Array of first coordinates |
[in] | yp | Array of second coordinates |
[in] | zp | Array of third coordinates |
[out] | tab | Output array |
GSTLEARN_EXPORT int manageExternalInformation | ( | int | mode, |
const ELoc & | locatorType, | ||
Db * | dbin, | ||
Db * | dbout, | ||
bool * | flag_created | ||
) |
Derive the external information(s) from the Output db (if Grid) to the Input Db
GSTLEARN_EXPORT int migrate | ( | Db * | dbin, |
Db * | dbout, | ||
const String & | name, | ||
int | dist_type, | ||
const VectorDouble & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates a variable from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | name | Name of the attribute to be migrated |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming convention |
GSTLEARN_EXPORT int migrateByAttribute | ( | Db * | dbin, |
Db * | dbout, | ||
const VectorInt & | atts, | ||
int | dist_type, | ||
const VectorDouble & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates a variable from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | atts | Array of attributes to be migrated |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming Convention |
GSTLEARN_EXPORT int migrateByLocator | ( | Db * | dbin, |
Db * | dbout, | ||
const ELoc & | locatorType, | ||
int | dist_type, | ||
const VectorDouble & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates all z-locator variables from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | locatorType | Locator Type |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming convention |
GSTLEARN_EXPORT int migrateGridToCoor | ( | const DbGrid * | db_grid, |
int | iatt, | ||
const VectorVectorDouble & | coords, | ||
VectorDouble & | tab | ||
) |
Migrates a variable from the grid structure into a variable at points defined by coordinate vectors
[in] | db_grid | descriptor of the grid parameters |
[in] | iatt | rank of the grid attribute |
[in] | coords | Array of coordinates (dimension: ndim, np) |
[out] | tab | Output array (Dimension: number of discretized points) |
GSTLEARN_EXPORT int migrateMulti | ( | Db * | dbin, |
Db * | dbout, | ||
const VectorString & | names, | ||
int | dist_type, | ||
const VectorDouble & | dmax, | ||
bool | flag_fill, | ||
bool | flag_inter, | ||
bool | flag_ball, | ||
const NamingConvention & | namconv | ||
) |
Migrates a set of variables from one Db to another one
[in] | dbin | Descriptor of the input Db |
[in] | dbout | Descriptor of the output Db |
[in] | names | Name of the attribute to be migrated |
[in] | dist_type | Type of distance for calculating maximum distance 1 for L1 and 2 for L2 distance |
[in] | dmax | Array of maximum distances (optional) |
[in] | flag_fill | Filling option |
[in] | flag_inter | Interpolation |
[in] | flag_ball | Use BallTree sorting algorithm when available |
[in] | namconv | Naming convention |
GSTLEARN_EXPORT int pointToBlock | ( | Db * | dbpoint, |
DbGrid * | dbgrid, | ||
int | option, | ||
int | flag_size, | ||
int | iatt_time, | ||
int | iatt_size, | ||
int | iatt_angle, | ||
int | iatt_scaleu, | ||
int | iatt_scalev, | ||
int | iatt_scalew | ||
) |
Plunge a set of isolated points within a discretization grid in order to compute the voronoi of the points and derive:
[in] | dbpoint | Descriptor of the point parameters |
[in] | dbgrid | Descriptor of the grid parameters |
[in] | option | Connectivity option (0 for cross and 1 for block) |
[in] | flag_size | When 1, the border pixels report the border thickness When 0, the border pixels are painted in 1 |
[in] | iatt_time | Attribute of 'dbpoint'for Time shift (optional) |
[in] | iatt_size | Attribute of 'dbpoint' giving size (optional) |
[in] | iatt_angle | Optional variable for anisotropy angle (around Z) |
[in] | iatt_scaleu | Optional variable for anisotropy scale factor (U) |
[in] | iatt_scalev | Optional variable for anisotropy scale factor (V) |
[in] | iatt_scalew | Optional variable for anisotropy scale factor (W) |