ObjectBoundaryArea
Measures the surface of objects contained in the volume of interest of a binary image.
Access to parameter description
For an introduction:
See also
Access to parameter description
For an introduction:
- section Image Analysis
- section Morphometry
- On a 2D image, it returns the Crofton Perimeter, which is homogeneous to a length (dimensionality 1).
- On a 3D image, it returns the result of the Area3d algorithm, which is homogeneous to a surface (dimensionality 2).
See also
Function Syntax
This function returns outputMeasurement.
// Function prototype
ObjectBoundaryAreaMsr::Ptr objectBoundaryArea( std::shared_ptr< iolink::ImageView > inputBinaryImage, std::shared_ptr< iolink::ImageView > inputMaskImage, ObjectBoundaryAreaMsr::Ptr outputMeasurement = nullptr );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputBinaryImage |
The input binary image. | Image | Binary | nullptr |
![]() |
inputMaskImage |
The binary image defining the volume of interest. The measurement is computed from pixels having a 1 value in this image. If it equals null, the computation is performed from all pixels of the input image. It must have same dimensions as the input image. | Image | Binary | nullptr |
![]() |
outputMeasurement |
The output measurement result. | ObjectBoundaryAreaMsr | nullptr |
Object Examples
auto polystyrene_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_sep.vip" ); auto polystyrene_mask = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_mask.vip" ); ObjectBoundaryArea objectBoundaryAreaAlgo; objectBoundaryAreaAlgo.setInputBinaryImage( polystyrene_sep ); objectBoundaryAreaAlgo.setInputMaskImage( polystyrene_mask ); objectBoundaryAreaAlgo.execute(); std::cout << "surface: " << objectBoundaryAreaAlgo.outputMeasurement()->surface( 0 ) ;
Function Examples
auto polystyrene_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_sep.vip" ); auto polystyrene_mask = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_mask.vip" ); auto result = objectBoundaryArea( polystyrene_sep, polystyrene_mask ); std::cout << "surface: " << result->surface( 0 ) ;