EnergyFilter3d
Computes, for each voxel of a three-dimensional image, the energy value of its neighborhood.
Access to parameter description
For an introduction:
Access to parameter description
For an introduction:
- section Images Filtering.
- section First Order Statistics Filters.
- A cube with a half side length defined by the kernelRadius parameter,
- A ball with a radius defined by the kernelRadius parameter.
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > energyFilter3d( std::shared_ptr< iolink::ImageView > inputImage, EnergyFilter3d::KernelShape kernelShape, uint32_t kernelRadius, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
![]() |
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr | ||||
![]() |
kernelRadius |
The kernel half side length or radius, in voxels. In case of a cube, a value N produces a cube window of 2N+1 voxels side length. In case of a ball, a value N produces a ball with a 2N+1 voxels diameter. | UInt32 | >=1 | 3 | ||||
![]() |
kernelShape |
The shape of the window defining the neighborhood.
|
Enumeration | BALL | |||||
![]() |
outputImage |
The output image. Its dimensions are forced to the same values as the input. Its data type is forced to floating point. | Image | nullptr |
Object Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); EnergyFilter3d energyFilter3dAlgo; energyFilter3dAlgo.setInputImage( foam_sep ); energyFilter3dAlgo.setKernelShape( EnergyFilter3d::KernelShape::CUBE ); energyFilter3dAlgo.setKernelRadius( 3 ); energyFilter3dAlgo.execute(); std::cout << "outputImage:" << energyFilter3dAlgo.outputImage()->toString();
Function Examples
auto foam_sep = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam_sep.vip" ); auto result = energyFilter3d( foam_sep, EnergyFilter3d::KernelShape::CUBE, 3 ); std::cout << "outputImage:" << result->toString();