GrayscaleFillHoles3d
Fills holes in particles of a three-dimensional grayscale image.
Access to parameter description
For an introduction:
Reference:
P. Soille, Morphological Image Analysis. Principles and Applications, Second Edition, Springer-Verlag, Berlin, p.208, 2003.
See also
Access to parameter description
For an introduction:
- section Mathematical Morphology
- section Geodesic Transformations
- The corresponding input image gray level on image borders,
- The "threshold filling value" inside the image.
Reference:
P. Soille, Morphological Image Analysis. Principles and Applications, Second Edition, Springer-Verlag, Berlin, p.208, 2003.
See also
Function Syntax
This function returns the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > grayscaleFillHoles3d( std::shared_ptr< iolink::ImageView > inputImage, double thresholdFillingValue, GrayscaleFillHoles3d::Neighborhood neighborhood, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Class Name | GrayscaleFillHoles3d |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
inputImage |
The grayscale input image. | Image | Binary, Label or Grayscale | nullptr | ||||||
![]() |
neighborhood |
The 3D neighborhood configuration.
|
Enumeration | CONNECTIVITY_26 | |||||||
![]() |
thresholdFillingValue |
The value filling the marker image inside (the gray level under which valleys are filled). The common usage is to set it at the image maximum intensity. | Float64 | Any value | 1 | ||||||
![]() |
outputImage |
The grayscale output image. Its dimensions and type are forced to the same values as the input. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); GrayscaleFillHoles3d grayscaleFillHoles3dAlgo; grayscaleFillHoles3dAlgo.setInputImage( foam ); grayscaleFillHoles3dAlgo.setThresholdFillingValue( 0.0 ); grayscaleFillHoles3dAlgo.setNeighborhood( GrayscaleFillHoles3d::Neighborhood::CONNECTIVITY_26 ); grayscaleFillHoles3dAlgo.execute(); std::cout << "outputImage:" << grayscaleFillHoles3dAlgo.outputImage()->toString();
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = grayscaleFillHoles3d( foam, 0.0, GrayscaleFillHoles3d::Neighborhood::CONNECTIVITY_26 ); std::cout << "outputImage:" << result->toString();