Functions | |
| 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) |
| 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 |
| GSTLEARN_EXPORT BImage morpho_double2image | ( | const VectorInt & | nx, |
| const VectorDouble & | tab, | ||
| double | vmin, | ||
| double | vmax, | ||
| bool | verbose | ||
| ) |
Converts an input image (double) into a returned image
| GSTLEARN_EXPORT void morpho_double2imageInPlace | ( | const VectorInt & | nx, |
| const VectorDouble & | tab, | ||
| double | vmin, | ||
| double | vmax, | ||
| BImage & | imagout, | ||
| bool | verbose | ||
| ) |
Converts an input image (double) into an image (in place)
| GSTLEARN_EXPORT void morpho_image2double | ( | const BImage & | imagin, |
| int | mode, | ||
| double | grain, | ||
| double | pore, | ||
| VectorDouble & | tab, | ||
| bool | verbose | ||
| ) |
Converts an image into an array (double)