clij-advanced-filters

Logo

CLIJx - The incubator for CLIJ2 (experimental)

View the Project on GitHub clij/clij-advanced-filters

multiplyImageAndCoordinate

Image

null

Usage in ImageJ macro

Ext.CLIJ_multiplyImageAndCoordinate(null);

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;
// Execute operation on GPU
clijx.multiplyImageAndCoordinate(clij, arg1, arg2, arg3);
//show result

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

Back to CLIJ documentation

Imprint