|
NASA World Wind WMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.servers.wms.utilities.WaveletCodec
public class WaveletCodec
| Nested Class Summary | |
|---|---|
static class |
WaveletCodec.EncodingType
|
class |
WaveletCodec.ReconstructionThread
|
| Field Summary | |
|---|---|
static java.lang.String |
WVT_EXT
A suggested filename extension for wavelet-encodings. |
| Constructor Summary | |
|---|---|
WaveletCodec()
|
|
| Method Summary | |
|---|---|
static WaveletCodec |
encode(java.awt.image.BufferedImage image)
Creates a wavelet encoding from the given BufferedImage. |
byte[] |
getBandData(int band)
|
int |
getResolutionX()
Returns the resolution of this wavelet encoding. |
int |
getResolutionY()
Returns the resolution of this wavelet encoding. |
static boolean |
isPowerOfTwo(int value)
Convenience method for testing is a value is a power of two. |
static WaveletCodec |
loadFully(java.io.File file)
Loads a previously persisted wavelet encoding from the given file. |
static WaveletCodec |
loadPartially(java.io.File file,
int resolution)
Partially loads a previously persisted wavelet encoding from the given file, upto the given resolution. |
static double |
logBase2(double value)
Convenience method to compute the log-2 of a value. |
static int |
nearestPowerOfTwo(int resolution)
Returns a resolution value that is the nearest power of 2 greater than or equal to the given value. |
java.awt.image.BufferedImage |
reconstruct(int resolution)
Reconstructs an image from this wavelet encoding at the given resolution. |
void |
save(java.io.File file)
Saves this wavelet encoding to the given File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WVT_EXT
| Constructor Detail |
|---|
public WaveletCodec()
| Method Detail |
|---|
public static WaveletCodec encode(java.awt.image.BufferedImage image)
throws java.lang.IllegalArgumentException
image -
java.lang.IllegalArgumentExceptionpublic byte[] getBandData(int band)
public int getResolutionX()
public int getResolutionY()
public static boolean isPowerOfTwo(int value)
value -
public static WaveletCodec loadFully(java.io.File file)
throws java.io.IOException
file -
java.io.IOException
public static WaveletCodec loadPartially(java.io.File file,
int resolution)
throws java.io.IOException,
java.lang.IllegalArgumentException
file - resolution -
java.io.IOException
java.lang.IllegalArgumentExceptionpublic static double logBase2(double value)
value -
public static int nearestPowerOfTwo(int resolution)
resolution -
public java.awt.image.BufferedImage reconstruct(int resolution)
throws java.lang.IllegalArgumentException
resolution -
java.lang.IllegalArgumentException
public void save(java.io.File file)
throws java.io.IOException
file -
java.io.IOException
|
NASA World Wind WMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||