AverageObjectThickness3d
Measures the thickness of structures inside the volume of interest of a three-dimensional binary image.
Access to parameter description
For an introduction:
The average object thickness Th is computed as follows: Th=k×VS where
See also
Access to parameter description
For an introduction:
- section Image Analysis
- section Morphometry
The average object thickness Th is computed as follows: Th=k×VS where
- k is a constant depending on the the selected model
- k=2 for the parallel plate model
- k=4 for the cylinder rod model
- k=6 for the sphere model
- S is the object surface
- V is the object volume
See also
Function Syntax
This function returns the outputMeasurement output parameter.
// Function prototype. AverageObjectThicknessMsr::Ptr averageObjectThickness3d( std::shared_ptr< iolink::ImageView > inputObjectImage, std::shared_ptr< iolink::ImageView > inputMaskImage, AverageObjectThickness3d::Model model, AverageObjectThicknessMsr::Ptr outputMeasurement = NULL );
Class Syntax
Parameters
Class Name | AverageObjectThickness3d |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
inputObjectImage |
The input 3D binary image. | Image | Binary | nullptr | ||||||
![]() |
inputMaskImage |
The binary image defining the volume of interest. The measurement is computed from voxels having a value of 1 in this image. If it equals null, the computation is performed from all voxels of the input image. It must have same dimensions as the input image. | Image | Binary | nullptr | ||||||
![]() |
model |
The structure model used to compute the thickness.
|
Enumeration | PARALLEL_PLATE_MODEL | |||||||
![]() |
outputMeasurement |
The output measurement result. | AverageObjectThicknessMsr | nullptr |
Object Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); AverageObjectThickness3d averageObjectThickness3dAlgo; averageObjectThickness3dAlgo.setInputObjectImage( foam_sep ); averageObjectThickness3dAlgo.setInputMaskImage( foam_sep ); averageObjectThickness3dAlgo.setModel( AverageObjectThickness3d::Model::PARALLEL_PLATE_MODEL ); averageObjectThickness3dAlgo.execute(); std::cout << "thickness: " << averageObjectThickness3dAlgo.outputMeasurement()->thickness( ) ;
Function Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); auto result = averageObjectThickness3d( foam_sep, foam_sep, AverageObjectThickness3d::Model::PARALLEL_PLATE_MODEL ); std::cout << "thickness: " << result->thickness( ) ;