|
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
|
Field Summary | |
---|---|
static String |
WVT_EXT
A suggested filename extension for wavelet-encodings. |
Constructor Summary | |
---|---|
WaveletCodec()
|
Method Summary | |
---|---|
static WaveletCodec |
encode(BufferedImage image)
Creates a wavelet encoding from the given BufferedImage. |
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(File file)
Loads a previously persisted wavelet encoding from the given file. |
static WaveletCodec |
loadPartially(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. |
BufferedImage |
reconstruct(int resolution)
Reconstructs an image from this wavelet encoding at the given resolution. |
void |
save(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 String WVT_EXT
Constructor Detail |
---|
public WaveletCodec()
Method Detail |
---|
public static WaveletCodec encode(BufferedImage image) throws IllegalArgumentException
image
-
IllegalArgumentException
public int getResolutionX()
public int getResolutionY()
public static boolean isPowerOfTwo(int value)
value
-
public static WaveletCodec loadFully(File file) throws IOException
file
-
IOException
public static WaveletCodec loadPartially(File file, int resolution) throws IOException, IllegalArgumentException
file
- resolution
-
IOException
IllegalArgumentException
public static double logBase2(double value)
value
-
public static int nearestPowerOfTwo(int resolution)
resolution
-
public BufferedImage reconstruct(int resolution) throws IllegalArgumentException
resolution
-
IllegalArgumentException
public void save(File file) throws IOException
file
-
IOException
|
NASA World Wind WMS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |