|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.ArrayList<HaarStage> Facemorph.haar.HaarReader
public class HaarReader
Reads a Haar Cascade xml file into a list of HaarStages
Field Summary | |
---|---|
static long |
serialVersionUID
ID for serialisation |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
HaarReader(java.lang.String file,
boolean url)
Constructor for a HaarReader object |
Method Summary | |
---|---|
void |
calcHidRects(double scale)
Calculate the hidden rectangles |
void |
flipHorizontal()
Flip the object detector horizontally |
int |
getHeight()
return the height |
int |
getHidHeight()
return the hidden height |
int |
getHidWidth()
return the hidden width |
int |
getWidth()
return the width |
static void |
main(java.lang.String[] args)
Main method for testing |
java.lang.String |
stripComments(java.lang.String fileName)
Strip comments from OpenCV haar files, this is because many of the files contain illegal comments (containing the -- string) which the java XML parser complains about |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public HaarReader(java.lang.String file, boolean url)
file
- the file to read fromurl
- true if the file string represents a URL, a local file is assumed otherwiseMethod Detail |
---|
public java.lang.String stripComments(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
- the name of the file to read into the string
java.io.FileNotFoundException
public int getWidth()
public int getHeight()
public int getHidWidth()
public int getHidHeight()
public void calcHidRects(double scale)
scale
- the current search scalepublic void flipHorizontal()
public static void main(java.lang.String[] args)
args
- the program args
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |