DilationBall3d
Performs a three-dimensional erosion using a structuring element matching with a sphere.
Access to parameter description
For an introduction:
See also
Access to parameter description
For an introduction:
- section Mathematical Morphology
- section Introduction To Dilation
See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > dilationBall3d( std::shared_ptr< iolink::ImageView > inputImage, uint32_t kernelRadius, DilationBall3d::Precision precision, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
![]() |
inputImage |
The input image. The image type can be integer or float. | Image | Binary, Label, Grayscale or Multispectral | nullptr | ||||
![]() |
kernelRadius |
The length of the sphere radius in voxels. | UInt32 | >=1 | 3 | ||||
![]() |
precision |
The precision of the computation method.
|
Enumeration | FASTER | |||||
![]() |
outputImage |
The output image. Its dimensions and type are forced to the same values as the input image. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); DilationBall3d dilationBall3dAlgo; dilationBall3dAlgo.setInputImage( foam ); dilationBall3dAlgo.setKernelRadius( 3 ); dilationBall3dAlgo.setPrecision( DilationBall3d::Precision::FASTER ); dilationBall3dAlgo.execute(); std::cout << "outputImage:" << dilationBall3dAlgo.outputImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = dilationBall3d( foam, 3, DilationBall3d::Precision::FASTER ); std::cout << "outputImage:" << result->toString();