public class ImageCompare
extends java.lang.Object
Constructor and Description |
---|
ImageCompare() |
Modifier and Type | Method and Description |
---|---|
static void |
compareFolders(Path dir1,
Path dir2)
Compares two directories for similar images with matching names.
|
static double |
compareImages(Path file1,
Path file2)
Returns a similarity measure between two images on the scale from 0 to 1.
|
static void |
main(java.lang.String[] args) |
public static double compareImages(Path file1, Path file2) throws java.io.IOException
file1
- - path to the first imagefile2
- - path to the second imagejava.io.IOException
- - if an error occurs while loading any of the imagespublic static void compareFolders(Path dir1, Path dir2) throws java.io.IOException
dir1
- dir2
- java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
args
- java.io.IOException