eu.planets_project.services.java_se.image
Class JavaImageIOCompare

java.lang.Object
  extended by 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

Field Summary
static String NAME
          Service name
static URI PSNR_URI
          The PSNR property definition
 
Fields inherited from interface eu.planets_project.services.compare.Compare
QNAME
 
Constructor Summary
JavaImageIOCompare()
           
 
Method Summary
static PropertyComparison buildPsnrProperty(double psnr)
           
 CompareResult compare(DigitalObject first, DigitalObject second, List<Parameter> config)
           
 List<Parameter> convert(DigitalObject configFile)
           
 ServiceDescription describe()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

JavaImageIOCompare

public JavaImageIOCompare()
Method Detail

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.