CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

pointlistToLabelledSpots

Takes a pointlist with dimensions nd with n point coordinates in d dimensions and a touch matrix of size nn to draw lines from all points to points if the corresponding pixel in the touch matrix is 1.

pointlistToLabelledSpots often follows after

pointlistToLabelledSpots is often followed by

Usage in ImageJ macro

Ext.CLIJ2_pointlistToLabelledSpots(Image pointlist, Image spots_destination);

Usage in Java

clij2.pointlistToLabelledSpots(pointlist, spots_destination);
// 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);
spots_destination = clij2.create(pointlist);
// Execute operation on GPU
clij2.pointlistToLabelledSpots(pointlist, spots_destination);
//show result
spots_destinationImagePlus = clij2.pull(spots_destination);
spots_destinationImagePlus.show();

// cleanup memory on GPU
clij2.release(pointlist);
clij2.release(spots_destination);

Usage in Matlab

clij2.pointlistToLabelledSpots(pointlist, spots_destination);
% init CLIJ and GPU
clij2 = init_clatlab();

% get input parameters
pointlist = clij2.pushMat(pointlist_matrix);
spots_destination = clij2.create(pointlist);
% Execute operation on GPU
clij2.pointlistToLabelledSpots(pointlist, spots_destination);
% show result
spots_destination = clij2.pullMat(spots_destination)

% cleanup memory on GPU
clij2.release(pointlist);
clij2.release(spots_destination);

Usage in Icy

clij2.pointlistToLabelledSpots(pointlist, spots_destination);
// 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);
spots_destination = clij2.create(pointlist);
// Execute operation on GPU
clij2.pointlistToLabelledSpots(pointlist, spots_destination);
// show result
spots_destination_sequence = clij2.pullSequence(spots_destination)
Icy.addSequence(spots_destination_sequence);
// cleanup memory on GPU
clij2.release(pointlist);
clij2.release(spots_destination);

Example notebooks

filtering_in_graphs
neighbors_of_neighbors

Example scripts

filtering_in_graphs.ijm
large_matrices.ijm
neighbors_of_neighbors.ijm

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint