ErosionLine3d
Performs a three-dimensional erosion using a structuring element matching with a line.
Access to parameter description
For an introduction:

Figure 1. Azimuthal and polar angles on the unit sphere
See also
Access to parameter description
For an introduction:
- section Mathematical Morphology
- section Introduction To Erosion

Figure 1. Azimuthal and polar angles on the unit sphere
See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > erosionLine3d( std::shared_ptr< iolink::ImageView > inputImage, double thetaAngle, double phiAngle, uint32_t kernelRadius, 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 |
![]() |
thetaAngle |
The azimuthal angle in degrees. | Float64 | Any value | 0 |
![]() |
phiAngle |
The polar angle in degrees. | Float64 | Any value | 0 |
![]() |
kernelRadius |
The length of the linear structuring element in pixels. | UInt32 | >=1 | 3 |
![]() |
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" ); ErosionLine3d erosionLine3dAlgo; erosionLine3dAlgo.setInputImage( foam ); erosionLine3dAlgo.setThetaAngle( 0 ); erosionLine3dAlgo.setPhiAngle( 0 ); erosionLine3dAlgo.setKernelRadius( 3 ); erosionLine3dAlgo.execute(); std::cout << "outputImage:" << erosionLine3dAlgo.outputImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = erosionLine3d( foam, 0, 0, 3 ); std::cout << "outputImage:" << result->toString();