|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.hiof.imagepr.tools.MatrixTools
The class MatrixTools contains some static methods performing some useful operations on matrices.
Constructor Summary | |
MatrixTools()
|
Method Summary | |
static double[][] |
copy(double[][] matrix)
Creates a copy of a double matrix. |
static short[][] |
copy(short[][] matrix)
Creates a copy of a short matrix. |
static short[][] |
double2short(double[][] matrix,
double factor)
|
static void |
fill(short[][] matrix,
short value)
Fills the matrix with a value. |
static double |
mean(short[][] matrix)
Find the mean value of the elements in a matrix. |
static void |
print(short[][] matrix)
Prints the contens of a short matrix to standard out. |
static short[][] |
subMatrix(short[][] matrix,
int fromRow,
int toRow,
int fromCol,
int toCol)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MatrixTools()
Method Detail |
public static void print(short[][] matrix)
matrix
- A matrix to be printed.public static void fill(short[][] matrix, short value)
matrix
- A matrix.value
- A value.public static short[][] copy(short[][] matrix)
matrix
- A matrix to be copied.
public static double[][] copy(double[][] matrix)
matrix
- A matrix to be copied.
public static double mean(short[][] matrix)
matrix
- A matrix.
public static short[][] double2short(double[][] matrix, double factor)
public static short[][] subMatrix(short[][] matrix, int fromRow, int toRow, int fromCol, int toCol)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |