Processing math: 100%
ImageDev

GaussianDerivative3d

Approximates the convolution of a three-dimensional image with a Gaussian kernel or its derivative.

Access to parameter description

This algorithm independently applies, on each axis, an approximation of: The Gaussian filter is based on the recursive filtering method proposed by R.Deriche which is defined for one dimension by: f(x)=b(α|x|+1)eα|x|  where  b=α4 Note that this filter has an infinite impulse response and takes advantage of the separability of the Gaussian kernel.
Using this mode, the computation time is independent of the standard deviation.

Reference
R.Deriche. "Fast algorithms for low-level vision". IEEE Transactions on Pattern Analysis and Machine Intelligence, vol.12, no 1, pp. 78-87, Jan. 1990.

See also

Function Syntax

This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > gaussianDerivative3d( std::shared_ptr< iolink::ImageView > inputImage, iolink::Vector3i32 orderDerivative, iolink::Vector3d standardDeviation, std::shared_ptr< iolink::ImageView > outputImage = NULL );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. Image Binary, Label, Grayscale or Multispectral nullptr
input
standardDeviation
The sigma value of the Gaussian filter for each direction X, Y, and Z. Each value must be greater than or equal to 0.1. Vector3d >=0.1 {1.f, 1.f, 1.f}
input
orderDerivative
The derivation order for each direction X, Y, and Z. Each value must be 0, 1 or 2. Vector3i32 [0, 2] {0, 0, 0}
output
outputImage
The output image. Its dimensions, calibration and interpretation are forced to the same values as the input image. Its type is forced to float. Image nullptr

Object Examples

auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" );

GaussianDerivative3d gaussianDerivative3dAlgo;
gaussianDerivative3dAlgo.setInputImage( foam );
gaussianDerivative3dAlgo.setOrderDerivative( {0, 0, 0} );
gaussianDerivative3dAlgo.setStandardDeviation( {1.0, 1.0, 1.0} );
gaussianDerivative3dAlgo.execute();

std::cout << "outputImage:" << gaussianDerivative3dAlgo.outputImage()->toString();

Function Examples

auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" );

auto result = gaussianDerivative3d( foam, {0, 0, 0}, {1.0, 1.0, 1.0} );

std::cout << "outputImage:" << result->toString();