public class ImgLib2Assert extends Object
Modifier and Type | Method and Description |
---|---|
static <A extends ValueEquals<B>,B> |
assertImageEquals(RandomAccessibleInterval<? extends A> expected,
RandomAccessibleInterval<? extends B> actual)
Throws an AssertionError, if the content or intervals of the two images
differ.
|
static <A,B> void |
assertImageEquals(RandomAccessibleInterval<? extends A> expected,
RandomAccessibleInterval<? extends B> actual,
BiPredicate<A,B> equals)
Throws an AssertionError, if the content or intervals of the two images
differ.
|
static void |
assertImageEqualsIntegerType(RandomAccessibleInterval<? extends IntegerType<?>> expected,
RandomAccessibleInterval<? extends IntegerType<?>> actual)
Throws an AssertionError, if the content or intervals of the two images
differ.
|
static void |
assertImageEqualsRealType(RandomAccessibleInterval<? extends RealType<?>> expected,
RandomAccessibleInterval<? extends RealType<?>> actual,
double tolerance)
Throws an AssertionError, if the content or intervals of the two images
differ.
|
static void |
assertIntervalEquals(Interval expected,
Interval actual)
Throws an AssertionError, if the two Intervals differ.
|
static void |
assertIntervalEquals(RealInterval expected,
RealInterval actual,
double tolerance) |
public static <A extends ValueEquals<B>,B> void assertImageEquals(RandomAccessibleInterval<? extends A> expected, RandomAccessibleInterval<? extends B> actual)
ValueEquals.valueEquals(Object)
.public static void assertImageEqualsRealType(RandomAccessibleInterval<? extends RealType<?>> expected, RandomAccessibleInterval<? extends RealType<?>> actual, double tolerance)
ComplexType.getRealDouble()
differ by less
than "tolerance".public static void assertImageEqualsIntegerType(RandomAccessibleInterval<? extends IntegerType<?>> expected, RandomAccessibleInterval<? extends IntegerType<?>> actual)
IntegerType.getIntegerLong()
are equal.public static <A,B> void assertImageEquals(RandomAccessibleInterval<? extends A> expected, RandomAccessibleInterval<? extends B> actual, BiPredicate<A,B> equals)
public static void assertIntervalEquals(Interval expected, Interval actual)
public static void assertIntervalEquals(RealInterval expected, RealInterval actual, double tolerance)
Copyright © 2015–2022 ImgLib2. All rights reserved.