ErosionBall3d
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 Erosion
See also
Function Syntax
This function returns the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > erosionBall3d( std::shared_ptr< iolink::ImageView > inputImage, uint32_t kernelRadius, ErosionBall3d::Precision precision, std::shared_ptr< iolink::ImageView > outputImage = NULL );
This function returns the outputImage output parameter.
// Function prototype. erosion_ball_3d( input_image, kernel_radius = 3, precision = ErosionBall3d.Precision.FASTER, output_image = None )
This function returns the outputImage output parameter.
// Function prototype. public static IOLink.ImageView ErosionBall3d( IOLink.ImageView inputImage, UInt32 kernelRadius = 3, ErosionBall3d.Precision precision = ImageDev.ErosionBall3d.Precision.FASTER, IOLink.ImageView outputImage = null );
Class Syntax
Parameters
Class Name | ErosionBall3d |
---|
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" ); ErosionBall3d erosionBall3dAlgo; erosionBall3dAlgo.setInputImage( foam ); erosionBall3dAlgo.setKernelRadius( 3 ); erosionBall3dAlgo.setPrecision( ErosionBall3d::Precision::FASTER ); erosionBall3dAlgo.execute(); std::cout << "outputImage:" << erosionBall3dAlgo.outputImage()->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) erosion_ball_3d_algo = imagedev.ErosionBall3d() erosion_ball_3d_algo.input_image = foam erosion_ball_3d_algo.kernel_radius = 3 erosion_ball_3d_algo.precision = imagedev.ErosionBall3d.FASTER erosion_ball_3d_algo.execute() print( "output_image:", str( erosion_ball_3d_algo.output_image ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); ErosionBall3d erosionBall3dAlgo = new ErosionBall3d { inputImage = foam, kernelRadius = 3, precision = ErosionBall3d.Precision.FASTER }; erosionBall3dAlgo.Execute(); Console.WriteLine( "outputImage:" + erosionBall3dAlgo.outputImage.ToString() );
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = erosionBall3d( foam, 3, ErosionBall3d::Precision::FASTER ); std::cout << "outputImage:" << result->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) result = imagedev.erosion_ball_3d( foam, 3, imagedev.ErosionBall3d.FASTER ) print( "output_image:", str( result ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); IOLink.ImageView result = Processing.ErosionBall3d( foam, 3, ErosionBall3d.Precision.FASTER ); Console.WriteLine( "outputImage:" + result.ToString() );