CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

writeVTKLineListToDisc

Takes a point list image representing n points (n2 for 2D points, n3 for 3D points) and a corresponding touch matrix , sized (n+1)*(n+1), and exports them in VTK format.

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_writeVTKLineListToDisc(Image pointlist, Image touch_matrix, String filename);

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 touch_matrix = clijx.push(touch_matrixImagePlus);
// Execute operation on GPU
clijx.writeVTKLineListToDisc(pointlist, touch_matrix, filename);
// show result

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

% get input parameters
pointlist = clijx.pushMat(pointlist_matrix);
touch_matrix = clijx.pushMat(touch_matrix_matrix);
% Execute operation on GPU
clijx.writeVTKLineListToDisc(pointlist, touch_matrix, filename);
% show result

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

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint