Package org.geotools.image.test
Class ImageAssert
- Object
-
- ImageAssert
-
public class ImageAssert extends Object
Compares two images using perceptual criterias: the assertions will fail if the images would look different to a human being.- Author:
- Andrea Aime - GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description ImageAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertEquals(RenderedImage expectedImage, RenderedImage actualImage, int threshold)Checks the expected image and the actual image are equals from a human perception p.o.vstatic voidassertEquals(File expectedFile, RenderedImage actualImage, int threshold)Checks the image in the reference file and the actual image are equals from a human perception p.o.vstatic voidassertEquals(File expectedImage, RenderedImage actualImage, int threshold, ImageComparator.Mode mode)Checks the expected image and the actual image are equals from a human perception p.o.v
-
-
-
Method Detail
-
assertEquals
public static void assertEquals(File expectedFile, RenderedImage actualImage, int threshold) throws IOException
Checks the image in the reference file and the actual image are equals from a human perception p.o.v- Throws:
IOException
-
assertEquals
public static void assertEquals(RenderedImage expectedImage, RenderedImage actualImage, int threshold)
Checks the expected image and the actual image are equals from a human perception p.o.v
-
assertEquals
public static void assertEquals(File expectedImage, RenderedImage actualImage, int threshold, ImageComparator.Mode mode) throws IOException
Checks the expected image and the actual image are equals from a human perception p.o.v- Throws:
IOException
-
-