Functions

Binmorph3d.c File Reference

Functions

VImage VErodeImage3d (VImage src, VImage dest, VoxelList se, int nse)
 3D morphological erosion
VImage VDilateImage3d (VImage src, VImage dest, VoxelList se, int nse)
 3D morphological dilation
VoxelList VConvertSE3d (VImage src, int *nse)
 convert a structuring element given as a raster image into a voxel list. The voxel list representation is more efficient computationally.
VImage VGenSphere3d (VShort radius)
 generate a sphere shaped object. The output can be used as a structuring element (after passing it through VConvertSE3d).
VImage VGenSphere2d (VShort radius)
 generate a sphere shaped object, only the center slice is filled with foreground voxels. The output can be used as a structuring element (after passing it through VConvertSE3d).

Detailed Description

3D binary morphology.

This file contains functions for 3D binary morphology: ersion, dilation, and generation of 3D structuring elements.

Reference:
P. Maragos, R.W. Schafer (1990): "Morphological Systems for multidimensional signal processing", Proc. of the IEEE, Vol. 78, No. 4, pp. 690--709.
Author:
Gabriele Lohmann, MPI-CBS

Function Documentation

VImage VErodeImage3d ( VImage  src,
VImage  dest,
VoxelList  se,
int  nse 
)

3D morphological erosion

Parameters:
src input image (bit repn)
dest output image (bit repn)
se structuring element
nse number of elements in the structuring element

Performs a 3D binary morphological erosion using Minkowski addition. The structuring element must be given as an array of voxel- addresses, i.e. as SEstruct *list, together with the length of that list. A binary raster image can be converted into this structure by calling the function "ConvertSE".

VImage VDilateImage3d ( VImage  src,
VImage  dest,
VoxelList  se,
int  nse 
)

3D morphological dilation

Parameters:
src input image (bit repn)
dest output image (bit repn)
se structuring element
nse number of elements in the structuring element

Performs a 3D binary morphological dilation using Minkowski addition. The structuring element must be given as an array of voxel- addresses, i.e. as SEstruct *list, together with the length of that list. A binary raster image can be converted into this structure by calling the function "ConvertSE".

VoxelList VConvertSE3d ( VImage  src,
int *  nse 
)

convert a structuring element given as a raster image into a voxel list. The voxel list representation is more efficient computationally.

Parameters:
src input image (bit repn)
*nse ptr to the number of elements in the voxel list.

This function generates a structuring element that can be used as input into VDilateImage3d or VErodeImage3d.

VImage VGenSphere3d ( VShort  radius  ) 

generate a sphere shaped object. The output can be used as a structuring element (after passing it through VConvertSE3d).

Parameters:
radius gives the radius of the SE
VImage VGenSphere2d ( VShort  radius  ) 

generate a sphere shaped object, only the center slice is filled with foreground voxels. The output can be used as a structuring element (after passing it through VConvertSE3d).

Parameters:
radius gives the radius of the SE