SkewnessFilter3d
Computes, for each voxel of a three-dimensional image, the skewness value of its neighborhood.
Access to parameter description
For an introduction:
The shape of the neighborhood can be:
Access to parameter description
For an introduction:
- section Images Filtering.
- section First Order Statistics Filters.
The shape of the neighborhood can be:
- 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 > skewnessFilter3d( std::shared_ptr< iolink::ImageView > inputImage, SkewnessFilter3d::KernelShape kernelShape, uint32_t kernelRadius, std::shared_ptr< iolink::ImageView > outputImage = nullptr );
This function returns outputImage.
// Function prototype. skewness_filter_3d(input_image: idt.ImageType, kernel_shape: SkewnessFilter3d.KernelShape = SkewnessFilter3d.KernelShape.BALL, kernel_radius: int = 3, output_image: idt.ImageType = None) -> idt.ImageType
This function returns outputImage.
// Function prototype. public static IOLink.ImageView SkewnessFilter3d( IOLink.ImageView inputImage, SkewnessFilter3d.KernelShape kernelShape = ImageDev.SkewnessFilter3d.KernelShape.BALL, UInt32 kernelRadius = 3, 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 |
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
input_image |
The input image. | image | Binary, Label, Grayscale or Multispectral | None | |||||
kernel_radius |
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 | |||||
kernel_shape |
The shape of the window defining the neighborhood.
|
enumeration | BALL | ||||||
output_image |
The output image. Its dimensions are forced to the same values as the input. Its data type is forced to floating point. | image | None |
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | null | |||||
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 | null |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); SkewnessFilter3d skewnessFilter3dAlgo; skewnessFilter3dAlgo.setInputImage( foam ); skewnessFilter3dAlgo.setKernelShape( SkewnessFilter3d::KernelShape::CUBE ); skewnessFilter3dAlgo.setKernelRadius( 3 ); skewnessFilter3dAlgo.execute(); std::cout << "outputImage:" << skewnessFilter3dAlgo.outputImage()->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) skewness_filter_3d_algo = imagedev.SkewnessFilter3d() skewness_filter_3d_algo.input_image = foam skewness_filter_3d_algo.kernel_shape = imagedev.SkewnessFilter3d.CUBE skewness_filter_3d_algo.kernel_radius = 3 skewness_filter_3d_algo.execute() print("output_image:", str(skewness_filter_3d_algo.output_image))
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); SkewnessFilter3d skewnessFilter3dAlgo = new SkewnessFilter3d { inputImage = foam, kernelShape = SkewnessFilter3d.KernelShape.CUBE, kernelRadius = 3 }; skewnessFilter3dAlgo.Execute(); Console.WriteLine( "outputImage:" + skewnessFilter3dAlgo.outputImage.ToString() );
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = skewnessFilter3d( foam, SkewnessFilter3d::KernelShape::CUBE, 3 ); std::cout << "outputImage:" << result->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) result = imagedev.skewness_filter_3d(foam, imagedev.SkewnessFilter3d.CUBE, 3) print("output_image:", str(result))
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); IOLink.ImageView result = Processing.SkewnessFilter3d( foam, SkewnessFilter3d.KernelShape.CUBE, 3 ); Console.WriteLine( "outputImage:" + result.ToString() );