|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.wisc.ssec.mcidas.EnhancementTable
public class EnhancementTable
Class for reading a McIDAS enhancement table (.ET file). The default constructor creates a grey scale enhancement.
Constructor Summary | |
---|---|
EnhancementTable()
Construct an enhancement table with a grey scale enhancement. |
|
EnhancementTable(File file)
Construct an enhancement table from a file object. |
|
EnhancementTable(String source)
Construct an enhancement table from a local disk file or URL. |
|
EnhancementTable(URL url)
Construct an enhancement table from a remote URL object. |
Method Summary | |
---|---|
int |
getIndex(int red,
int green,
int blue)
Look up a unique (hopefully) RGB value and return the index |
int[][] |
getRGBValues()
Retrieve the data values. |
static void |
main(String[] args)
Test by running: java edu.wisc.ssec.mcidas.EnhancementTable _OR_ java edu.wisc.ssec.mcidas.EnhancementTable enhancement_file. |
String |
toString()
Print out a pretty table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnhancementTable()
public EnhancementTable(String source) throws McIDASException
source
- source of the enhancement table (path or URL)
McIDASException
- error finding or reading the source.public EnhancementTable(File file) throws McIDASException
file
- file object representing the enhancement table.
McIDASException
- error finding or reading the file.public EnhancementTable(URL url) throws McIDASException
url
- URL representing the enhancement table.
McIDASException
- error finding or reading the URL.Method Detail |
---|
public int[][] getRGBValues()
public int getIndex(int red, int green, int blue)
public String toString()
toString
in class Object
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |