CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

CLIJ 1/2/x reference in category ‘filter’

This reference contains all methods currently available in CLIJ, CLIJ2 and CLIJx for filtering images.. Read more about CLIJs release cycle

Please note: CLIJ is deprecated. Make the transition to CLIJ2.

Method is available in CLIJ (deprecated release)
Method is available in CLIJ2 (stable release)
Method is available in CLIJx (experimental release)
Method is available in clEsperanto (experimental)

Categories: Binary, Filter, Graphs, Labels, Math, Matrices, Measurements, Projections, Transformations, Detection, CLIc

A,[B],[C],[D],[E],[F],[G], H,[I], J, K,[L],[M],[N],[O],[P], Q,[R],[S],[T], U,[V],[W], X, Y, Z

B

bilateral (Experimental)

Applies a bilateral filter using a box neighborhood with sigma weights for space and intensity to the input image.

binaryEdgeDetection

Determines pixels/voxels which are on the surface of binary objects and sets only them to 1 in the destination image. All other pixels are set to 0.

binaryFillHoles

Fills holes (pixels with value 0 surrounded by pixels with value 1) in a binary image.

binaryFillHolesSliceBySlice (Experimental)

Fills holes (pixels with value 0 surrounded by pixels with value 1) in a binary image stack slice by slice.

binaryNot

Computes a binary image (containing pixel values 0 and 1) from an image X by negating its pixel values x using the binary NOT operator !

blur2D

Computes the Gaussian blurred image of an image given two sigma values in X and Y.

blur3D

Computes the Gaussian blurred image of an image given two sigma values in X, Y and Z.

blurSliceBySlice (Experimental)

Computes the Gaussian blurred image of an image given two sigma values in X and Y. Thus, the filterkernel can have non-isotropic shape.

bottomHatBox

Apply a bottom-hat filter for background subtraction to the input image.

bottomHatSphere

Applies a bottom-hat filter for background subtraction to the input image.

C

closingBox

Apply a binary closing to the input image by calling n dilations and n erosions subsequenntly.

closingDiamond

Apply a binary closing to the input image by calling n dilations and n erosions subsequently.

colorDeconvolution (Experimental)

Computes the color deconvolution of an 8bit RGB stack color image with a given 3x3 matrix of color vectors. Note: The input image has to be a stack with three z-slices corresponding to the red, green and blue channel.)

convolve

Convolve the image with a given kernel image.

countNonZeroPixels

Determines the number of all pixels in a given image which are not equal to 0.

countNonZeroPixels2DSphere

Counts non-zero pixels in a sphere around every pixel.

countNonZeroPixelsSliceBySliceSphere

Counts non-zero pixels in a sphere around every pixel slice by slice in a stack.

countNonZeroVoxels3DSphere

Counts non-zero voxels in a sphere around every voxel.

crossCorrelation (Experimental)

Performs cross correlation analysis between two images.

D

detectLabelEdges

Takes a labelmap and returns an image where all pixels on label edges are set to 1 and all other pixels to 0.

differenceOfGaussian2D

Applies Gaussian blur to the input image twice with different sigma values resulting in two images which are then subtracted from each other.

differenceOfGaussian3D

Applies Gaussian blur to the input image twice with different sigma values resulting in two images which are then subtracted from each other.

dilateBox

Computes a binary image with pixel values 0 and 1 containing the binary dilation of a given input image.

dilateBoxSliceBySlice

Computes a binary image with pixel values 0 and 1 containing the binary dilation of a given input image.

dilateLabels

Extend labels with a given radius.

dilateSphere

Computes a binary image with pixel values 0 and 1 containing the binary dilation of a given input image.

dilateSphereSliceBySlice

Computes a binary image with pixel values 0 and 1 containing the binary dilation of a given input image.

distanceMap

Generates a distance map from a binary image.

divideByGaussianBackground

Applies Gaussian blur to the input image and divides the original by the result.

E

entropyBox

Determines the local entropy in a box with a given radius around every pixel.

equalizeMeanIntensitiesOfSlices

Determines correction factors for each z-slice so that the average intensity in all slices can be made the same and multiplies these factors with the slices.

erodeBox

Computes a binary image with pixel values 0 and 1 containing the binary erosion of a given input image.

erodeBoxSliceBySlice

Computes a binary image with pixel values 0 and 1 containing the binary erosion of a given input image.

erodeLabels

Extend labels with a given radius.

erodeSphere

Computes a binary image with pixel values 0 and 1 containing the binary erosion of a given input image.

erodeSphereSliceBySlice

Computes a binary image with pixel values 0 and 1 containing the binary erosion of a given input image.

excludeLabels

This operation removes labels from a labelmap and renumbers the remaining labels.

excludeLabelsOnEdges

Removes all labels from a label map which touch the edges of the image (in X, Y and Z if the image is 3D).

excludeLabelsOnSurface

This operation follows a ray from a given position towards a label (or opposite direction) and checks if there is another label between the label an the image border.

excludeLabelsOutsideSizeRange

Removes labels from a label map which are not within a certain size range.

excludeLabelsSubSurface

This operation follows a ray from a given position towards a label (or opposite direction) and checks if there is another label between the label an the image border.

excludeLabelsWithValuesOutOfRange

This operation removes labels from a labelmap and renumbers the remaining labels.

excludeLabelsWithValuesWithinRange

This operation removes labels from a labelmap and renumbers the remaining labels.

exponential

Computes base exponential of all pixels values.

extendLabelingViaVoronoi

Takes a label map image and dilates the regions using a octagon shape until they touch.

F

flagLabelsOnEdges (Experimental)

Determines which labels in a label map touch the edges of the image (in X, Y and Z if the image is 3D).

floodFillDiamond

Replaces recursively all pixels of value a with value b if the pixels have a neighbor with value b.

G

gammaCorrection

Applies a gamma correction to an image.

gaussianBlur2D

Computes the Gaussian blurred image of an image given two sigma values in X and Y.

gaussianBlur3D

Computes the Gaussian blurred image of an image given two sigma values in X, Y and Z.

generateFeatureStack (Experimental)

Generates a feature stack for Trainable Weka Segmentation.

gradientX

Computes the gradient of gray values along X.

gradientY

Computes the gradient of gray values along Y.

gradientZ

Computes the gradient of gray values along Z.

greyLevelAtttributeFiltering (Experimental)

Inspired by Grayscale attribute filtering from MorpholibJ library by David Legland & Ignacio Arganda-Carreras.

greyscaleClosingBox

Apply a greyscale morphological closing to the input image.

greyscaleClosingSphere

Apply a greyscale morphological closing to the input image.

greyscaleOpeningBox

Apply a greyscale morphological opening to the input image.

greyscaleOpeningSphere

Apply a greyscale morphological opening to the input image.

I

imageJ2FrangiVesselness (Experimental)

Apply ImageJ2 / ImageJ Ops Frangi Vesselness filter to an image.

imageJ2GaussianBlur (Experimental)

Apply ImageJ2 / ImageJ Ops Gaussian Blur to an image.

imageJ2MedianBox (Experimental)

Apply ImageJ2 / ImageJ Ops Median filter with a Sphere shape to an image.

imageJ2MedianSphere (Experimental)

Apply ImageJ2 / ImageJ Ops Median filter with a Sphere shape to an image.

imageJ2RichardsonLucyDeconvolution (Experimental)

Apply ImageJ2 / ImageJ Ops Richardson Lucy Deconvolution to an image.

imageJ2Tubeness (Experimental)

Apply ImageJ2 / ImageJ Ops Tubeness filter to an image.

imageJFillHoles (Experimental)

Apply ImageJs Watershed algorithm to a binary image.

imageJGaussianBlur (Experimental)

Apply ImageJs Gaussian Blur to an image.

imageJVariance (Experimental)

Apply ImageJs Variance filter to an image.

imageJWatershed (Experimental)

Apply ImageJs Watershed algorithm to a binary image.

intensityCorrection (Experimental)

Determines the mean intensity of the image stack and multiplies it with a factor so that the mean intensity becomes equal to a given value.

intensityCorrectionAboveThresholdOtsu (Experimental)

Determines the mean intensity of all pixel the image stack which are above a determined Threshold (Otsu et al. 1979) and multiplies it with a factor so that the mean intensity becomes equal to a given value.

L

labelSpots

Transforms a binary image with single pixles set to 1 to a labelled spots image.

labelVoronoiOctagon

Takes a labeled image and dilates the labels using a octagon shape until they touch.

laplaceBox

Applies the Laplace operator (Box neighborhood) to an image.

laplaceSphere (Experimental)

Applies the Laplace operator (Diamond neighborhood) to an image.

localExtremaBox (Experimental)

Applies a local minimum and maximum filter.

localThreshold

Computes a binary image with pixel values 0 and 1 depending on if a pixel value x in image X was above of equal to the pixel value m in mask image M.

localThresholdBernsen (Experimental)

Computes the local threshold based on Auto Local Threshold (Bernsen method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>if (tcontrast > max - min){ if ((max + min)/2.0 >= 128) res = 0} else if (val > (max + min)/2.0) res =0</pre>

localThresholdContrast (Experimental)

Computes the local threshold based on Auto Local Threshold (Contrast method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>if (abs(value - min) >= abs(max - value) && (value != 0)) value = 0 </pre>

localThresholdMean (Experimental)

Computes the local threshold based on Auto Local Threshold (Mean method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>if(value > (mean - c_value)) value = 0 </pre>

localThresholdMedian (Experimental)

Computes the local threshold based on Auto Local Threshold (Median method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>if(value > (median - c_value)) value = 0 </pre>

localThresholdMidGrey (Experimental)

Computes the local threshold based on Auto Local Threshold (MidGrey method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>if (value > ( (max + min)/2.0 - c_value) ) value = 0 </pre>

localThresholdNiblack (Experimental)

Computes the local threshold based on Auto Local Threshold (Niblack method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>t = mean + k_value * sqrt(var - c_value) </pre>

localThresholdPhansalkar (Experimental)

Computes the local threshold (Fast version) based on Auto Local Threshold (Phansalkar method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/c955dc18cff58ac61df82f3f001799f7ffaec5cb/src/main/java/fiji/threshold/Auto_Local_Threshold.java#L636 Formulary: <pre>t = mean * (1 + p * exp(-q * mean) + k * ((stdev / r) - 1))</pre>

localThresholdSauvola (Experimental)

Computes the local threshold based on Auto Local Threshold (Sauvola method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular: <pre>t = mean * (1.0 + k_value * (stddev / r_value - 1.0)) </pre>

M

mask

Computes a masked image by applying a binary mask to an image.

maskLabel

Computes a masked image by applying a label mask to an image.

maskStackWithPlane

Computes a masked image by applying a binary 2D mask to an image stack.

maskedVoronoiLabeling

Takes a binary image, labels connected components and dilates the regions using a octagon shape until they touch and only inside another binary mask image.

maximum2DBox

Computes the local maximum of a pixels rectangular neighborhood.

maximum2DSphere

Computes the local maximum of a pixels ellipsoidal neighborhood.

maximum3DBox

Computes the local maximum of a pixels cube neighborhood.

maximum3DSphere

Computes the local maximum of a pixels spherical neighborhood.

maximumOctagon

Applies a maximum filter with kernel size 3x3 n times to an image iteratively.

maximumOfNNearestNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the maximum value of neighboring labels. The distance number of nearest neighbors can be configured. Note: Values of all pixels in a label each must be identical.

maximumOfProximalNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the maximum value of neighboring labels.

maximumOfTouchingNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the maximum value of neighboring labels. The radius of the neighborhood can be configured: * radius 0: Nothing is replaced * radius 1: direct neighbors are taken into account * radius 2: neighbors and neighbors or neighbors are taken into account * radius n: …

mean2DBox

Computes the local mean average of a pixels rectangular neighborhood.

mean2DSphere

Computes the local mean average of a pixels ellipsoidal neighborhood.

mean3DBox

Computes the local mean average of a pixels cube neighborhood.

mean3DSphere

Computes the local mean average of a pixels spherical neighborhood.

meanOfNNearestNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the minimum value of neighboring labels. The distance number of nearest neighbors can be configured. Note: Values of all pixels in a label each must be identical.

meanOfProximalNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the mean average value of neighboring labels.

meanOfTouchingNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the mean average value of neighboring labels. The radius of the neighborhood can be configured: * radius 0: Nothing is replaced * radius 1: direct neighbors are taken into account * radius 2: neighbors and neighbors or neighbors are taken into account * radius n: …

meanSliceBySliceSphere

Computes the local mean average of a pixels ellipsoidal 2D neighborhood in an image stack slice by slice.

median2DBox

Computes the local median of a pixels rectangular neighborhood.

median2DSphere

Computes the local median of a pixels ellipsoidal neighborhood.

median3DBox

Computes the local median of a pixels cuboid neighborhood.

median3DSphere

Computes the local median of a pixels spherical neighborhood.

mergeTouchingLabels

minimum2DBox

Computes the local minimum of a pixels rectangular neighborhood.

minimum2DSphere

Computes the local minimum of a pixels ellipsoidal neighborhood.

minimum3DBox

Computes the local minimum of a pixels cube neighborhood.

minimum3DSphere

Computes the local minimum of a pixels spherical neighborhood.

minimumOctagon

Applies a minimum filter with kernel size 3x3 n times to an image iteratively.

minimumOfNNearestNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the minimum value of neighboring labels. The distance number of nearest neighbors can be configured. Note: Values of all pixels in a label each must be identical.

minimumOfProximalNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the minimum value of neighboring labels.

minimumOfTouchingNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the minimum value of neighboring labels. The radius of the neighborhood can be configured: * radius 0: Nothing is replaced * radius 1: direct neighbors are taken into account * radius 2: neighbors and neighbors or neighbors are taken into account * radius n: …

modeOfNNearestNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the mode value of neighboring labels. The distance number of nearest neighbors can be configured. Note: Values of all pixels in a label each must be identical.

modeOfProximalNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the most popular value of neighboring labels.

modeOfTouchingNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the most popular value of neighboring labels. The radius of the neighborhood can be configured: * radius 0: Nothing is replaced * radius 1: direct neighbors are taken into account * radius 2: neighbors and neighbors or neighbors are taken into account * radius n: …

morphoLibJClassicWatershed (Experimental)

Apply MorpholibJs Classic Watershed to an image.

morphoLibJFillHoles (Experimental)

Apply MorpholibJ Fill Holes (Binary/Gray) to an image.

morphoLibJKeepLargestRegion (Experimental)

Apply MorpholibJ Keep Largest Region to a binary image.

morphoLibJMarkerControlledWatershed (Experimental)

Apply MorpholibJs Marker-controlled Watershed to an image.

morphoLibJRemoveLargestRegion (Experimental)

Apply MorpholibJ Remove Largest Region to a binary image.

N

neighborsOfNeighbors

Determines neighbors of neigbors from touch matrix and saves the result as a new touch matrix.

nonLocalMeans (Experimental)

Applies a non-local means filter using a box neighborhood with a Gaussian weight specified with sigma to the input image.

nonzeroMaximumBox

Apply a maximum filter (box shape) to the input image.

nonzeroMaximumDiamond

Apply a maximum filter (diamond shape) to the input image.

nonzeroMinimumBox

Apply a minimum filter (box shape) to the input image.

nonzeroMinimumDiamond

Apply a minimum filter (diamond shape) to the input image.

O

onlyzeroOverwriteMaximumBox

Apply a local maximum filter to an image which only overwrites pixels with value 0.

onlyzeroOverwriteMaximumDiamond

Apply a local maximum filter to an image which only overwrites pixels with value 0.

openingBox

Apply a binary opening to the input image by calling n erosions and n dilations subsequenntly.

openingDiamond

Apply a binary opening to the input image by calling n erosions and n dilations subsequenntly.

outOfIntensityRange

Sets all pixels to 1 if their intensity lies out of a given range, and 0 otherwise.

P

parametricWatershed (Experimental)

Apply a binary watershed to a binary image and introduce black pixels between objects.

R

replaceIntensities

Replaces integer intensities specified in a vector image.

replaceIntensity

Replaces a specific intensity in an image with a given new value.

replacePixelsIfZero

Replaces pixel values x with y in case x is zero.

S

seededWatershed (Experimental)

Takes a label map (seeds) and an input image with gray values to apply the watershed algorithm and split the image above a given threshold in labels.

shrinkLabels (Experimental)

Extend labels with a given radius.

simpleITKBilateral (Experimental)

Apply SimpleITKs Bilateral filter to an image.

simpleITKBinaryFillhole (Experimental)

Apply SimpleITKs Binary Fill hole to an image.

simpleITKBinaryPruning (Experimental)

Apply SimpleITKs Binary Pruning to an image.

simpleITKBinaryThinning (Experimental)

Apply SimpleITKs Binary Thinning to an image.

simpleITKBinomialBlur (Experimental)

Apply SimpleITKs Binomial Blur filter to an image.

simpleITKBoundedReciprocal (Experimental)

Apply SimpleITKs BoundedReciprocal to an image.

simpleITKCannyEdgeDetection (Experimental)

Apply SimpleITKs Canny edge detection filter to an image.

simpleITKConnectedComponent (Experimental)

Apply SimpleITKs ConnectedComponent to an image.

simpleITKDanielssonDistanceMap (Experimental)

Generate SimpleITKs Danielsson distance map from a binary image.

simpleITKDiscreteGaussian (Experimental)

Apply SimpleITKs Gaussian Blur to an image.

simpleITKFFTConvolution (Experimental)

Convolve an image with a kernel image using SimpleITK and a fast Fourier transform (FFT).

simpleITKHMaxima (Experimental)

Apply SimpleITKs H-Maxima filter to an image.

simpleITKInverseDeconvolution (Experimental)

Apply SimpleITKs Inverse Deconvolution to an image.

simpleITKLandweberDeconvolution (Experimental)

Apply SimpleITKs Landweber Deconvolution to an image.

simpleITKMedian (Experimental)

Apply SimpleITKs Median filter to an image.

simpleITKMedianProjection (Experimental)

Apply SimpleITKs Median projection to an image.

simpleITKMorphologicalWatershed (Experimental)

Apply SimpleITKs Morphological Watershed filter to an image.

simpleITKOtsuMultipleThresholds (Experimental)

Apply SimpleITKs Otsu Multiple Thresholds to an image.

simpleITKOtsuThreshold (Experimental)

Apply SimpleITKs Otsu Thresholding to an image.

simpleITKTikhonovDeconvolution (Experimental)

Apply SimpleITKs Tikhonov Deconvolution to an image.

simpleITKWienerDeconvolution (Experimental)

Apply SimpleITKs Wiener Deconvolution to an image.

simpleITKZeroCrossing (Experimental)

Apply SimpleITKs ZeroCrossing to an image.

simpleITKZeroCrossingBasedEdgeDetection (Experimental)

Apply SimpleITKs ZeroCrossingBasedEdgeDetection to an image.

skeletonize (Experimental)

Erodes a binary image until just its skeleton is left.

sobel

Convolve the image with the Sobel kernel.

sobelSliceBySlice

Convolve the image with the Sobel kernel slice by slice.

squaredDifference

Determines the squared difference pixel by pixel between two images.

standardDeviationBox

Computes the local standard deviation of a pixels box neighborhood.

standardDeviationOfNNearestNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the standard deviation value of neighboring labels. The distance number of nearest neighbors can be configured. Note: Values of all pixels in a label each must be identical.

standardDeviationOfProximalNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the standard deviation value of neighboring labels.

standardDeviationOfTouchingNeighborsMap

Takes a label image and a parametric intensity image and will replace each labels value in the parametric image by the standard deviation value of touching neighbor labels. The radius of the neighborhood can be configured: * radius 0: Nothing is replaced * radius 1: direct neighbors are taken into account * radius 2: neighbors and neighbors or neighbors are taken into account * radius n: …

standardDeviationSphere

Computes the local standard deviation of a pixels spherical neighborhood.

subtractGaussianBackground (Experimental)

Applies Gaussian blur to the input image and subtracts the result from the original image.

T

tenengrad

Convolve the image with the Tenengrad kernel slice by slice.

tenengradSliceBySlice

Convolve the image with the Tenengrad kernel slice by slice.

thresholdDoG (Experimental)

Applies a Difference-of-Gaussian filter to an image and thresholds it with given sigma and threshold values.

topHatBox

Applies a top-hat filter for background subtraction to the input image.

topHatOctagon (Experimental)

Applies a minimum filter with kernel size 3x3 n times to an image iteratively.

topHatOctagonSliceBySlice (Experimental)

Applies a minimum filter with kernel size 3x3 n times to an image iteratively.

topHatSphere

Applies a top-hat filter for background subtraction to the input image.

V

varianceBox

Computes the local variance of a pixels box neighborhood.

varianceSphere

Computes the local variance of a pixels spherical neighborhood.

voronoiLabeling

Takes a binary image, labels connected components and dilates the regions using a octagon shape until they touch.

voronoiOctagon

Takes a binary image and dilates the regions using a octagon shape until they touch.

voronoiOtsuLabeling

Labeles objects directly from grey-value images.

W

watershed

Apply a binary watershed to a binary image and introduces black pixels between objects.

200 methods listed.