CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

readValuesFromPositions

Takes a pointlist and a parametric image and reads parametric values from the positions.

The read intensity values are stored in a new vector.

Parameters

pointlist map_image values_destination

Category: Measurements

Availability: Available in Fiji by activating the update sites clij and clij2. This function is part of clijx_-0.30.1.21.jar.

Usage in ImageJ macro

Ext.CLIJx_readValuesFromPositions(Image pointlist, Image map_image, Image values_destination);

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 pointlist = clijx.push(pointlistImagePlus);
ClearCLBuffer map_image = clijx.push(map_imageImagePlus);
values_destination = clijx.create(pointlist);
// Execute operation on GPU
clijx.readValuesFromPositions(pointlist, map_image, values_destination);
// show result
values_destinationImagePlus = clijx.pull(values_destination);
values_destinationImagePlus.show();

// cleanup memory on GPU
clijx.release(pointlist);
clijx.release(map_image);
clijx.release(values_destination);
Matlab
% init CLIJ and GPU
clijx = init_clatlabx();

% get input parameters
pointlist = clijx.pushMat(pointlist_matrix);
map_image = clijx.pushMat(map_image_matrix);
values_destination = clijx.create(pointlist);
% Execute operation on GPU
clijx.readValuesFromPositions(pointlist, map_image, values_destination);
% show result
values_destination = clijx.pullMat(values_destination)

% cleanup memory on GPU
clijx.release(pointlist);
clijx.release(map_image);
clijx.release(values_destination);

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint