AverageObjectCountPerSlice3d
Computes the average number of objects along XY slices inside the volume of interest of a three-dimensional binary image.
Access to parameter description
For an introduction:
See also
Access to parameter description
For an introduction:
- section Image Analysis
- section Morphometry
See also
Function Syntax
This function returns outputMeasurement.
// Function prototype
AverageObjectCountPerSliceMsr::Ptr averageObjectCountPerSlice3d( std::shared_ptr< iolink::ImageView > inputObjectImage, std::shared_ptr< iolink::ImageView > inputMaskImage, AverageObjectCountPerSliceMsr::Ptr outputMeasurement = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputObjectImage |
The 3D binary input 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 |
![]() |
outputMeasurement |
The output measurement result. | AverageObjectCountPerSliceMsr | nullptr |
Object Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); AverageObjectCountPerSlice3d averageObjectCountPerSlice3dAlgo; averageObjectCountPerSlice3dAlgo.setInputObjectImage( foam_sep ); averageObjectCountPerSlice3dAlgo.setInputMaskImage( foam_sep ); averageObjectCountPerSlice3dAlgo.execute(); std::cout << "count: " << averageObjectCountPerSlice3dAlgo.outputMeasurement()->count( ) ;
Function Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); auto result = averageObjectCountPerSlice3d( foam_sep, foam_sep ); std::cout << "count: " << result->count( ) ;