1.8.0
CCC
 
Loading...
Searching...
No Matches
Convert arrays (provided as a Vector of double values) into Bimage (binary image) and vice-versa

Functions

void gstlrn::morpho_double2imageInPlace (const 1 &nx, const 1 &tabin, double vmin, double vmax, BImage &imagout, bool verbose=false)
 
BImage gstlrn::morpho_double2image (const 1 &nx, const 1 &tabin, double vmin, double vmax, bool verbose=false)
 
void gstlrn::morpho_image2double (const BImage &imagin, Id mode, double grain, double pore, 1 &tabout, bool verbose=false)
 

Detailed Description

Parameters
nxVector giving the number of nodes for each space dimension
tabinArray of double values containing the input information
taboutArray of double values which will receive the output values (It must have been allocated beforehand)
imaginPointer to the BImage containing the one input image
imagoutPointer to the BImage which will receive the output image. This is used when converting "to" a BImage (in place) (It must have been allocated beforehand: same dimension as 'imagin')
vmin,vmaxIf the value of 'tab' lies within [vmin, vmax], BImage is set to 1; 0 otherwise (used when converting from double to BImage)
grain,poreDouble values assigned to 1 or 0 of the input BImage (used when converting from BImage to double)
verboseVerbose flag

Function Documentation

◆ morpho_double2image()

BImage gstlrn::morpho_double2image ( const 1 &  nx,
const 1 &  tab,
double  vmin,
double  vmax,
bool  verbose 
)

Converts an input image (double) into a returned image

◆ morpho_double2imageInPlace()

void gstlrn::morpho_double2imageInPlace ( const 1 &  nx,
const 1 &  tab,
double  vmin,
double  vmax,
BImage imagout,
bool  verbose 
)

Converts an input image (double) into an image (in place)

◆ morpho_image2double()

void gstlrn::morpho_image2double ( const BImage imagin,
Id  mode,
double  grain,
double  pore,
1 &  tab,
bool  verbose 
)

Converts an image into an array (double)