CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

generateIntegerGreyValueCooccurrenceCountMatrixHalfDiamond

Takes an image and assumes its grey values are integers. It builds up a grey-level co-occurrence matrix of neighboring (left, bottom, back) pixel intensities.

Major parts of this operation run on the CPU.

Category: Measurements

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_generateIntegerGreyValueCooccurrenceCountMatrixHalfDiamond(Image integer_image, Image grey_value_cooccurrence_matrix_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 integer_image = clijx.push(integer_imageImagePlus);
grey_value_cooccurrence_matrix_destination = clijx.create(integer_image);
// Execute operation on GPU
clijx.generateIntegerGreyValueCooccurrenceCountMatrixHalfDiamond(integer_image, grey_value_cooccurrence_matrix_destination);
// show result
grey_value_cooccurrence_matrix_destinationImagePlus = clijx.pull(grey_value_cooccurrence_matrix_destination);
grey_value_cooccurrence_matrix_destinationImagePlus.show();

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

% get input parameters
integer_image = clijx.pushMat(integer_image_matrix);
grey_value_cooccurrence_matrix_destination = clijx.create(integer_image);
% Execute operation on GPU
clijx.generateIntegerGreyValueCooccurrenceCountMatrixHalfDiamond(integer_image, grey_value_cooccurrence_matrix_destination);
% show result
grey_value_cooccurrence_matrix_destination = clijx.pullMat(grey_value_cooccurrence_matrix_destination)

% cleanup memory on GPU
clijx.release(integer_image);
clijx.release(grey_value_cooccurrence_matrix_destination);

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint