Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 976 Bytes

reference_blur3DSliceBySlice.md

File metadata and controls

44 lines (32 loc) · 976 Bytes

blur3DSliceBySlice

Image

Computes the Gaussian blurred image of an image given two sigma values in X and Y. Thus, the filterkernel can have non-isotropic shape.

The Gaussian blur is applied slice by slice in 2D.

Usage in ImageJ macro

Ext.CLIJx_blur3DSliceBySlice(Image source, Image destination, Number sigmaX, Number sigmaY);

Usage in Java

// init CLIJ and GPU
import net.haesleinhuepf.clijx.CLIJ;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
CLIJx clijx = CLIJx.getInstance();

// get input parameters
ClearCLBuffer arg1 = clijx.push(arg1ImagePlus);
ClearCLBuffer arg2 = clijx.push(arg2ImagePlus);
float arg3 = 1.0;
float arg4 = 2.0;
// Execute operation on GPU
clijx.blur3DSliceBySlice(clij, arg1, arg2, arg3, arg4);
//show result

// cleanup memory on GPU
arg1.close();
arg2.close();

Back to CLIJ documentation

Imprint