jview
Class FalseColor

java.lang.Object
  extended by jview.FalseColor

public class FalseColor
extends Object

Factory class to generate look-up tables for false-color images.


Nested Class Summary
static class FalseColor.Convert
          Converts the lookup-table file one (binary) into an ascii-lookup table.
 
Constructor Summary
FalseColor()
           
 
Method Summary
static LookupTable asciiLoad(File f)
          ASCII load of a lookup table assumes 256 lines with the three RGB values at each line.
private static LookupTable asciiLoad(List<String> level)
          ASCII load of a lookup table assumes 256 lines with the three RGB values at each line.
static LookupTable asciiLoad(URL f)
          ASCII load of a lookup table assumes 256 lines with the three RGB values at each line.
static LookupTable blackBody()
          Generates a byte lookup-table converting gray images to black-body false colors.
static LookupTable load(File file)
          Load a lut from a file.
static LookupTable load(InputStream in)
          Load a lut from an input stream.
static LookupTable load(URL url)
          Loads a look-up table from an URL.
private static byte parse(String asc)
          Parses a single string to a byte value in decimal, hex or octal representation.
static List<String> toAscii(ByteLookupTable bt, int radix)
          Converts the lookup-table to a list of strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FalseColor

public FalseColor()
Method Detail

blackBody

public static final LookupTable blackBody()
Generates a byte lookup-table converting gray images to black-body false colors.


load

public static final LookupTable load(URL url)
Loads a look-up table from an URL.


load

public static final LookupTable load(File file)
Load a lut from a file.


load

public static final LookupTable load(InputStream in)
                              throws IOException
Load a lut from an input stream. First the red, then the green and finally the blue byte array should be contained in the file.

Throws:
IOException

asciiLoad

public static final LookupTable asciiLoad(File f)
ASCII load of a lookup table assumes 256 lines with the three RGB values at each line. Individual pieces starting with 0x represent hex, with 0 octal values, otherwise decimal is assumed.


asciiLoad

public static final LookupTable asciiLoad(URL f)
ASCII load of a lookup table assumes 256 lines with the three RGB values at each line. Individual pieces starting with 0x represent hex, with 0 octal values, otherwise decimal is assumed.


asciiLoad

private static final LookupTable asciiLoad(List<String> level)
ASCII load of a lookup table assumes 256 lines with the three RGB values at each line. Individual pieces starting with 0x represent hex, with 0 octal values, otherwise decimal is assumed.


parse

private static byte parse(String asc)
Parses a single string to a byte value in decimal, hex or octal representation.


toAscii

public static final List<String> toAscii(ByteLookupTable bt,
                                         int radix)
Converts the lookup-table to a list of strings.