Functions | |
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) |
imagin | Pointer to the BImage containing the one input image |
option | Description of the structuring element: 1 for BLOCK and 0 for CROSS (see remarks for more information) |
radius | Vector giving the extensions of the structuring element along each direction of the Space. |
flagDistErode | Inflate the grain; 0 Reduce the grain |
dist | Contains the vector of returned distances |
iptr0 | UID where the angle calculation will be calculated |
flag_center | True to omit the center |
verbose | Verbose flag |
GSTLEARN_EXPORT VectorInt gridcell_neigh | ( | int | ndim, |
int | option, | ||
int | radius, | ||
bool | flag_center, | ||
bool | verbose | ||
) |
Create the array of index shifts (relatively to the center cell) for a dilation by 'radius' of a regular grid
GSTLEARN_EXPORT void morpho_distance | ( | int | option, |
const VectorInt & | radius, | ||
bool | flagDistErode, | ||
BImage & | imagin, | ||
VectorDouble & | dist, | ||
bool | verbose | ||
) |
Returns the vector of distances from the grain to the edge