public class TestLoaderImage extends Object
Constructor and Description |
---|
TestLoaderImage(TestLoader loader) |
TestLoaderImage(TestLoader loader,
StackReader stackReader) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareTwoImages(String path1,
String path2)
Compare two images that are located on the file system in the same test-folder
|
static boolean |
compareTwoImages(TestLoaderImage loader1,
String path1,
TestLoaderImage loader2,
String path2,
boolean ignoreResolutionDifferences)
Compare two images that are located on the file system (possibly in different test folders)
|
boolean |
compareTwoObjectCollections(String path1,
String path2)
Compare two obj-mask-collection that are located on the file system in the test-folder
|
boolean |
doesPathExist(String testFilePath) |
TestLoader |
getLoader()
Delegate loader (for non image-related loading)
|
Channel |
openChannelFromFilePath(Path filePath) |
Channel |
openChannelFromTestPath(String testPath) |
ObjectCollection |
openObjectsFromFilePath(Path folderPath)
Opens an obj-mask-collection from a path to a file
|
ObjectCollection |
openObjectsFromTestPath(String testDirectoryPath) |
Stack |
openStackFromFilePath(Path filePath) |
Stack |
openStackFromTestPath(String testPath) |
Path |
resolveTestPath(String testPath) |
public TestLoaderImage(TestLoader loader)
public TestLoaderImage(TestLoader loader, StackReader stackReader)
public boolean compareTwoImages(String path1, String path2) throws FileNotFoundException
path1
- first-path to comparepath2
- second-path to compareFileNotFoundException
- if one or both of the files cannot be foundpublic static boolean compareTwoImages(TestLoaderImage loader1, String path1, TestLoaderImage loader2, String path2, boolean ignoreResolutionDifferences) throws FileNotFoundException
loader1
- loader to use for path1path1
- first-path to compareloader2
- loader to use for path2path2
- second-path to compareignoreResolutionDifferences
- if true any differences in image-resolution are not
consideredFileNotFoundException
- if one or both of the files cannot be foundpublic ObjectCollection openObjectsFromTestPath(String testDirectoryPath)
public ObjectCollection openObjectsFromFilePath(Path folderPath)
folderPath
- the path to a folderTestDataLoadException
- if data cannot be loadedpublic boolean compareTwoObjectCollections(String path1, String path2)
path1
- first-pathpath2
- second-pathpublic boolean doesPathExist(String testFilePath)
public TestLoader getLoader()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.