|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.stereopsis.MatrixLoader
public class MatrixLoader
A conveniance function which loads a matrix into a 2D array. The data is row-wise loaded from a textfile with space-delimited numbers. The array will be automatically allocated to the size of the loaded matrix. If not all rows have the same size, the longest row will determine the row length and unspecified values will be 0. If file loading should file, the returnd matrix will be of size 1x1 with value 0.
Constructor Summary | |
---|---|
MatrixLoader()
Creates a new instance of MatrixLoader |
Method Summary | |
---|---|
static int[][] |
loadInt(java.lang.String file)
Loads the values of the stored matrix as integers from the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixLoader()
Method Detail |
---|
public static int[][] loadInt(java.lang.String file)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |