CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

showRGB

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.

Usage in ImageJ macro

Ext.CLIJx_showRGB(Image red, Image green, Image blue, String title);

Usage in object oriented programming languages

Java
// 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);
Matlab
% 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);

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint