|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.color.analysis.MatrixCreator
public class MatrixCreator
This class creates and initializes co-occurrence matrices and co-occurrence frequency matrices.
Method Summary | |
---|---|
static CoOccurrenceFrequencyMatrix |
createCoOccurrenceFrequencyMatrix(CoOccurrenceMatrix A)
Creates a new co-occurrence frequency with the same dimension as the argument co-occurrence matrix, calls initCoOccurrenceFrequencyMatrix(net.sourceforge.jiu.color.data.CoOccurrenceMatrix, net.sourceforge.jiu.color.data.CoOccurrenceFrequencyMatrix) with them to initialize the new matrix,
then returns it. |
static CoOccurrenceMatrix |
createCoOccurrenceMatrix(Gray16Image image)
Create a co-occurrence matrix for a 16 bit grayscale image. |
static CoOccurrenceMatrix |
createCoOccurrenceMatrix(Gray8Image image)
|
static CoOccurrenceMatrix |
createCoOccurrenceMatrix(IntegerImage image,
int channelIndex)
|
static CoOccurrenceMatrix |
createCoOccurrenceMatrix(Paletted8Image image)
|
static void |
initCoOccurrenceFrequencyMatrix(CoOccurrenceMatrix A,
CoOccurrenceFrequencyMatrix cofm)
Initializes a co-occurrence frequency matrix from a co-occurrence matrix. |
static void |
initCoOccurrenceMatrix(IntegerImage image,
int channelIndex,
CoOccurrenceMatrix matrix)
Initializes a co-occurrence matrix from the input image, using the direct four neighbor pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CoOccurrenceMatrix createCoOccurrenceMatrix(Gray16Image image)
image
- the image for which the matrix is created
public static CoOccurrenceMatrix createCoOccurrenceMatrix(Gray8Image image)
public static CoOccurrenceMatrix createCoOccurrenceMatrix(Paletted8Image image)
public static CoOccurrenceMatrix createCoOccurrenceMatrix(IntegerImage image, int channelIndex)
public static void initCoOccurrenceMatrix(IntegerImage image, int channelIndex, CoOccurrenceMatrix matrix)
image
- the image that will be used to initialize the matrixmatrix
- the matrix that will first be cleared and then initialized from the image
IllegalArgumentException
- if at least one of the arguments is null or if the
palette size is not equal to the matrix dimensionpublic static CoOccurrenceFrequencyMatrix createCoOccurrenceFrequencyMatrix(CoOccurrenceMatrix A)
initCoOccurrenceFrequencyMatrix(net.sourceforge.jiu.color.data.CoOccurrenceMatrix, net.sourceforge.jiu.color.data.CoOccurrenceFrequencyMatrix)
with them to initialize the new matrix,
then returns it.
A MemoryCoOccurrenceFrequencyMatrix
is created.
A
- the co-occurrence matrix from which the resulting matrix will be initialized
IllegalArgumentException
- if the argument matrix is nullpublic static void initCoOccurrenceFrequencyMatrix(CoOccurrenceMatrix A, CoOccurrenceFrequencyMatrix cofm)
A
- co-occurrence matrix used as inputcofm
- co-occurrence matrix, will be initialized by this method
IllegalArgumentException
- if either matrix is null or if the dimensions are not equal
|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |