HiRISE

HiRISE.HiReport.util
Class KduExpander

java.lang.Object
  extended by HiRISE.HiReport.util.KduExpander

public class KduExpander
extends Object

Java interface to the kdu_expand command-line utility


Field Summary
static String ID
          CVS ID
protected static Logger logger
          Our logger
protected static int threads
          Number of threads
 
Constructor Summary
KduExpander()
           
 
Method Summary
static File grab(File jp2, double[] ad)
          Expand a portion of a JP2 file
static void main(String[] args)
          Test from command-line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

logger

protected static Logger logger
Our logger


threads

protected static int threads
Number of threads

Constructor Detail

KduExpander

public KduExpander()
Method Detail

grab

public static File grab(File jp2,
                        double[] ad)
                 throws IOException
Expand a portion of a JP2 file

Parameters:
jp2 - The JPEG-2000 image
ad - region fractions as (top, left, height, width)
Returns:
A reference to the TIFF image extracted
Throws:
IOException - Expansion failed

main

public static void main(String[] args)
                 throws IOException
Test from command-line

Parameters:
args - jp2 top left height width
Throws:
IOException - Failed

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona