ConvexHull2d
Fills the concavities of particles in a two-dimensional binary image.
Access to parameter description
For an introduction:
Access to parameter description
For an introduction:
- section Mathematical Morphology
- section Hit-Or-Miss And Skeleton
Function Syntax
This function returns outputBinaryImage.
// Function prototype
std::shared_ptr< iolink::ImageView > convexHull2d( std::shared_ptr< iolink::ImageView > inputBinaryImage, std::shared_ptr< iolink::ImageView > outputBinaryImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputBinaryImage |
The input binary image. | Image | Binary | nullptr |
![]() |
outputBinaryImage |
The output binary image. Its dimensions and type are forced to the same values as the input. | Image | nullptr |
Object Examples
auto polystyrene_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_sep.vip" ); ConvexHull2d convexHull2dAlgo; convexHull2dAlgo.setInputBinaryImage( polystyrene_sep ); convexHull2dAlgo.execute(); std::cout << "outputBinaryImage:" << convexHull2dAlgo.outputBinaryImage()->toString();
Function Examples
auto polystyrene_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_sep.vip" ); auto result = convexHull2d( polystyrene_sep ); std::cout << "outputBinaryImage:" << result->toString();