DilationDisk2d
Performs a two-dimensional dilation using a structuring element matching with a disk.
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 > dilationDisk2d( std::shared_ptr< iolink::ImageView > inputImage, uint32_t kernelRadius, DilationDisk2d::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 disk radius in pixels. | 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
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); DilationDisk2d dilationDisk2dAlgo; dilationDisk2dAlgo.setInputImage( polystyrene ); dilationDisk2dAlgo.setKernelRadius( 3 ); dilationDisk2dAlgo.setPrecision( DilationDisk2d::Precision::FASTER ); dilationDisk2dAlgo.execute(); std::cout << "outputImage:" << dilationDisk2dAlgo.outputImage()->toString();
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = dilationDisk2d( polystyrene, 3, DilationDisk2d::Precision::FASTER ); std::cout << "outputImage:" << result->toString();