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 clij2_-2.5.0.1.jar.

Usage in ImageJ macro

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

Usage in object oriented programming languages

Java
// init CLIJ and GPU
import net.haesleinhuepf.clij2.CLIJ2;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
CLIJ2 clij2 = CLIJ2.getInstance();

// get input parameters
ClearCLBuffer pointlist = clij2.push(pointlistImagePlus);
ClearCLBuffer map_image = clij2.push(map_imageImagePlus);
values_destination = clij2.create(pointlist);
// Execute operation on GPU
clij2.readValuesFromPositions(pointlist, map_image, values_destination);
// show result
values_destinationImagePlus = clij2.pull(values_destination);
values_destinationImagePlus.show();

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

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

% cleanup memory on GPU
clij2.release(pointlist);
clij2.release(map_image);
clij2.release(values_destination);
Icy JavaScript
// init CLIJ and GPU
importClass(net.haesleinhuepf.clicy.CLICY);
importClass(Packages.icy.main.Icy);

clij2 = CLICY.getInstance();

// get input parameters
pointlist_sequence = getSequence();
pointlist = clij2.pushSequence(pointlist_sequence);
map_image_sequence = getSequence();
map_image = clij2.pushSequence(map_image_sequence);
values_destination = clij2.create(pointlist);
// Execute operation on GPU
clij2.readValuesFromPositions(pointlist, map_image, values_destination);
// show result
values_destination_sequence = clij2.pullSequence(values_destination)
Icy.addSequence(values_destination_sequence);
// cleanup memory on GPU
clij2.release(pointlist);
clij2.release(map_image);
clij2.release(values_destination);

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint