CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

showGlasbeyOnGrey

Visualises two 2D images as one RGB image.

The first channel is shown in grey, the second with glasbey LUT.

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_showGlasbeyOnGrey(Image red, Image labelling, 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 labelling = clijx.push(labellingImagePlus);
// Execute operation on GPU
clijx.showGlasbeyOnGrey(red, labelling, title);
// show result

// cleanup memory on GPU
clijx.release(red);
clijx.release(labelling);
Matlab
% init CLIJ and GPU
clijx = init_clatlabx();

% get input parameters
red = clijx.pushMat(red_matrix);
labelling = clijx.pushMat(labelling_matrix);
% Execute operation on GPU
clijx.showGlasbeyOnGrey(red, labelling, title);
% show result

% cleanup memory on GPU
clijx.release(red);
clijx.release(labelling);

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint