Computes the local mean average of a pixels rectangular neighborhood. The rectangles size is specified by its half-width and half-height (radius).
Ext.CLIJ_meanSphere(Image source, Image destination, Number radiusX, Number radiusY);
// 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);
int arg3 = 10;
int arg4 = 20;
// Execute operation on GPU
clijx.meanSphere(clij, arg1, arg2, arg3, arg4);
//show result
// cleanup memory on GPU
arg1.close();
arg2.close();