|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HTPconfig
public class HTPconfig
HTPconfig
Contains all methods related to reading the configuration files and returning the contained information in appropriate data structures.
Constructor Summary | |
---|---|
HTPconfig()
|
Method Summary | |
---|---|
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getClass2Number(java.lang.String filename)
Reads the class2number configuration files into a Hashtable . |
java.util.Hashtable<java.lang.String,java.util.ArrayList<int[]>> |
getColor2Class(java.lang.String filename)
Reads the color2class configuration files into a Hashtable . |
java.util.Hashtable<java.lang.Integer,java.lang.Integer> |
getNumber2Color(java.lang.String filename)
Reads the number2color configuration files into a Hashtable . |
java.util.ArrayList<java.util.Hashtable<java.lang.String,java.lang.String>> |
getRegions(java.lang.String filename)
Reads the regions configuration files. |
double[] |
getScaling(java.lang.String filename)
Reads the scaling number from the given scaling configuration files. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTPconfig()
Method Detail |
---|
public double[] getScaling(java.lang.String filename)
scaling
configuration files.
filename
- A String
containing a file name from which to obtain the scaling information.
Array
containing a measured lengths in pixel and in millimetre.public java.util.Hashtable<java.lang.String,java.util.ArrayList<int[]>> getColor2Class(java.lang.String filename)
color2class
configuration files into a Hashtable
.
filename
- A String
containing a file name from which to obtain the colour informations.
Hashtable
containing an ArrayList
with the colour ranges in RGB and HSV for each class.public java.util.Hashtable<java.lang.String,java.lang.Integer> getClass2Number(java.lang.String filename)
class2number
configuration files into a Hashtable
.
filename
- A String
containing a file name from which to obtain the class to number mapping information.
Hashtable
containing the classification number for each class.
The translation process is as follows:public java.util.Hashtable<java.lang.Integer,java.lang.Integer> getNumber2Color(java.lang.String filename)
number2color
configuration files into a Hashtable
.
filename
- A String
containing a file name from which to obtain the number to colour mapping information.
Hashtable
containing the colour values (hexadecimal RGB) for each class.public java.util.ArrayList<java.util.Hashtable<java.lang.String,java.lang.String>> getRegions(java.lang.String filename)
regions
configuration files.
The regions are areas of limited class appearance.
filename
- A String
containing a file name from which to obtain the region information.
Hashtable
containing the region information.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |