GPU accelerated image processing for everyone
Visualises three 2D images as one RGB image
Availability: Available in Fiji by activating the update sites clij and clij2. This function is part of clijx_-0.32.0.1.jar.
Ext.CLIJx_showRGB(Image red, Image green, Image blue, String title);
// init CLIJ and GPU import net.haesleinhuepf.clijx.CLIJx; import net.haesleinhuepf.clij.clearcl.ClearCLBuffer; CLIJx clijx = CLIJx.getInstance(); // get input parameters ClearCLBuffer red = clijx.push(redImagePlus); ClearCLBuffer green = clijx.push(greenImagePlus); ClearCLBuffer blue = clijx.push(blueImagePlus);
// Execute operation on GPU clijx.showRGB(red, green, blue, title);
// show result // cleanup memory on GPU clijx.release(red); clijx.release(green); clijx.release(blue);
% init CLIJ and GPU clijx = init_clatlabx(); % get input parameters red = clijx.pushMat(red_matrix); green = clijx.pushMat(green_matrix); blue = clijx.pushMat(blue_matrix);
% Execute operation on GPU clijx.showRGB(red, green, blue, title);
% show result % cleanup memory on GPU clijx.release(red); clijx.release(green); clijx.release(blue);