CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

pointlistToLabelledSpots

Takes a pointlist with dimensions n times d with n point coordinates in d dimensions and labels corresponding pixels.

Category: Labels

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

pointlistToLabelledSpots often follows after

pointlistToLabelledSpots is often followed by

Usage in ImageJ macro

Ext.CLIJ2_pointlistToLabelledSpots(Image pointlist, Image spots_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);
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);
Matlab
% 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);
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);
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);
clEsperanto Python (experimental)
import pyclesperanto_prototype as cle

cle.pointlist_to_labelled_spots(pointlist, spots_destination)

Example notebooks

filtering_in_graphs
neighbors_of_neighbors
mesh_between_touching_neighbors.ipynb
mesh_nearest_neighbors.ipynb
mesh_with_distances.ipynb
shape_descriptors_based_on_neighborhood_graphs.ipynb
connected_component_labeling.ipynb

Example scripts

filtering_in_graphs.ijm
large_matrices.ijm
neighbors_of_neighbors.ijm

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint