Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 907 Bytes

reference_meanSphere.md

File metadata and controls

43 lines (32 loc) · 907 Bytes

meanSphere

Image

Computes the local mean average of a pixels rectangular neighborhood. The rectangles size is specified by its half-width and half-height (radius).

Usage in ImageJ macro

Ext.CLIJ_meanSphere(Image source, Image destination, Number radiusX, Number radiusY);

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);
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();

Back to CLIJ documentation

Imprint