eu.planets_project.services.java_se.image
Class JavaImageIOCompare
java.lang.Object
eu.planets_project.services.java_se.image.JavaImageIOCompare
- All Implemented Interfaces:
- Compare, PlanetsService
@MTOM
@StreamingAttachment(parseEagerly=true,
memoryThreshold=10485760L)
public class JavaImageIOCompare- extends Object
- implements Compare
The purpose of this is to implement a number of image comparison metrics for quality.
These include PSNR, MSE.
http://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio
- Author:
- AnJackson
| Fields inherited from interface eu.planets_project.services.compare.Compare |
QNAME |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- Service name
- See Also:
- Constant Field Values
PSNR_URI
public static final URI PSNR_URI
- The PSNR property definition
JavaImageIOCompare
public JavaImageIOCompare()
buildPsnrProperty
public static PropertyComparison buildPsnrProperty(double psnr)
compare
public CompareResult compare(DigitalObject first,
DigitalObject second,
List<Parameter> config)
- Specified by:
compare in interface Compare
convert
public List<Parameter> convert(DigitalObject configFile)
- Specified by:
convert in interface Compare
describe
public ServiceDescription describe()
- Specified by:
describe in interface PlanetsService
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 2011 Open Planets Foundation. All Rights Reserved.