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) |
nx | Vector giving the number of nodes for each space dimension |
tabin | Array of double values containing the input information |
tabout | Array of double values which will receive the output values (It must have been allocated beforehand) |
imagin | Pointer to the BImage containing the one input image |
imagout | Pointer 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,vmax | If the value of 'tab' lies within [vmin, vmax], BImage is set to 1; 0 otherwise (used when converting from double to BImage) |
grain,pore | Double values assigned to 1 or 0 of the input BImage (used when converting from BImage to double) |
verbose | Verbose flag |
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
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)