Package net.haesleinhuepf.clij.test
Class TestUtilities
- java.lang.Object
-
- net.haesleinhuepf.clij.test.TestUtilities
-
public class TestUtilities extends Object
Author: Robert Haase (http://haesleinhuepf.net) at MPI CBG (http://mpi-cbg.de) February 2018
-
-
Constructor Summary
Constructors Constructor Description TestUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanclBuffersEqual(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer1, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer2, double tolerance)static booleanclBuffersEqual(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer1, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer2, double tolerance, boolean ignoreSum)Deprecated.static booleancompareArrays(int[][][] a, int[][][] b)static booleancompareImages(ImagePlus a, ImagePlus b)static booleancompareImages(ImagePlus a, ImagePlus b, double tolerance)static <T extends RealType<T>>
booleancompareIterableIntervals(IterableInterval<T> lIterableInterval1, IterableInterval<T> lIterableInterval2)static longcountPixelsWithDifferenceAboveTolerance(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer image1, net.haesleinhuepf.clij.clearcl.ClearCLBuffer image2, Float tolerance)static longcountPixelsWithDifferenceAboveTolerance(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLImage image1, net.haesleinhuepf.clij.clearcl.ClearCLImage image2, Float tolerance)static ImagePlusgetRandomImage(int width, int height, int depth, int bitDepth, float minimum, float maximum)static voidprintBuffer(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer)
-
-
-
Method Detail
-
compareIterableIntervals
public static <T extends RealType<T>> boolean compareIterableIntervals(IterableInterval<T> lIterableInterval1, IterableInterval<T> lIterableInterval2)
-
compareArrays
public static boolean compareArrays(int[][][] a, int[][][] b)
-
getRandomImage
public static ImagePlus getRandomImage(int width, int height, int depth, int bitDepth, float minimum, float maximum)
-
clBuffersEqual
public static boolean clBuffersEqual(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer1, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer2, double tolerance)
-
clBuffersEqual
@Deprecated public static boolean clBuffersEqual(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer1, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer2, double tolerance, boolean ignoreSum)
Deprecated.Deprecated: use clij2.op.matrixEqual instead- Parameters:
clij-buffer1-buffer2-tolerance-ignoreSum-- Returns:
-
printBuffer
public static void printBuffer(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLBuffer buffer)
-
countPixelsWithDifferenceAboveTolerance
public static long countPixelsWithDifferenceAboveTolerance(CLIJ clij, net.haesleinhuepf.clij.clearcl.ClearCLImage image1, net.haesleinhuepf.clij.clearcl.ClearCLImage image2, Float tolerance)
-
-