1.2.1
CCC
 
Morpho.hpp File Reference
#include "gstlearn_export.hpp"
#include "Enum/EMorpho.hpp"
#include "geoslib_define.h"
#include "Arrays/BImage.hpp"
#include "Db/DbGrid.hpp"

Classes

class  Spill_Res
 

Functions

GSTLEARN_EXPORT int morpho_count (const BImage &imagin)
 
GSTLEARN_EXPORT void morpho_duplicate (const BImage &imagin, BImage &imagout)
 
GSTLEARN_EXPORT void morpho_erosion (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_dilation (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_opening (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_closing (int option, const VectorInt &radius, const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_intersection (const BImage &image1, const BImage &image2, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_union (const BImage &image1, const BImage &image2, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_negation (const BImage &imagin, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_double2imageInPlace (const VectorInt &nx, const VectorDouble &tabin, double vmin, double vmax, BImage &imagout, bool verbose=false)
 
GSTLEARN_EXPORT BImage morpho_double2image (const VectorInt &nx, const VectorDouble &tabin, double vmin, double vmax, bool verbose=false)
 
GSTLEARN_EXPORT void morpho_image2double (const BImage &imagin, int mode, double grain, double pore, VectorDouble &tabout, bool verbose=false)
 
GSTLEARN_EXPORT VectorDouble morpho_labelling (int option, int flag_size, const BImage &imagin, double ccvoid, bool verbose=false)
 
GSTLEARN_EXPORT VectorInt morpho_labelsize (int option, const BImage &imagin)
 
GSTLEARN_EXPORT void morpho_distance (int option, const VectorInt &radius, bool flagDistErode, BImage &imagin, VectorDouble &dist, bool verbose=false)
 
GSTLEARN_EXPORT VectorInt gridcell_neigh (int ndim, int option, int radius, bool flag_center=true, bool verbose=false)
 
GSTLEARN_EXPORT Spill_Res spillPoint (DbGrid *dbgrid, const String &name_depth, const String &name_data, int option=0, bool flag_up=true, int verbose_step=0, double hmax=TEST)
 

Function Documentation

GSTLEARN_EXPORT Spill_Res spillPoint ( DbGrid dbgrid,
const String name_depth,
const String name_data,
int  option,
bool  flag_up,
int  verbose_step,
double  hmax 
)

Evaluates the spill point

Returns
The Spill_Res structure which contains:
h elevation of the spill point
th maximum reservoir thickness
ix0 location of the spill point grid node along X
iy0 location of the spill point grid node along Y
Parameters
[in]dbgridGrid Db structure
[in]name_depthName of the variable containing the depth
[in]name_dataName of the variable containing the data
[in]option0 for 4-connectivity; 1 for 8-connectivity
[in]flag_upTRUE when working in elevation; FALSE in depth
[in]verbose_stepStep for the verbose flag
[in]hmaxmaximum reservoir thickness (FFFF not used)
Remarks
The variable 'ind_data', which contains the constraints, must
be set to:
0 for an idle node
1 for a node located outside the reservoir
2 for a node belonging to the reservoir
The numbering of the grid node corresponding to the spill point
must start with 1