net.sourceforge.jiu.color.analysis
Class MatrixCreator
java.lang.Object
net.sourceforge.jiu.color.analysis.MatrixCreator
public class MatrixCreator
extends java.lang.Object
This class creates and initializes co-occurrence matrices and co-occurrence
frequency matrices.
MatrixCreator
private MatrixCreator()
createCoOccurrenceFrequencyMatrix
public static CoOccurrenceFrequencyMatrix createCoOccurrenceFrequencyMatrix(CoOccurrenceMatrix A)
A
- the co-occurrence matrix from which the resulting matrix will be initialized
- the newly-created co-occurrence frequency matrix
createCoOccurrenceMatrix
public static CoOccurrenceMatrix createCoOccurrenceMatrix(Gray16Image image)
Create a co-occurrence matrix for a 16 bit grayscale image.
image
- the image for which the matrix is created
initCoOccurrenceFrequencyMatrix
public static void initCoOccurrenceFrequencyMatrix(CoOccurrenceMatrix A,
CoOccurrenceFrequencyMatrix cofm)
Initializes a co-occurrence frequency matrix from a co-occurrence matrix.
The two argument matrices must be non-null and have the same dimension.
A
- co-occurrence matrix used as inputcofm
- co-occurrence matrix, will be initialized by this method
initCoOccurrenceMatrix
public static void initCoOccurrenceMatrix(IntegerImage image,
int channelIndex,
CoOccurrenceMatrix matrix)
Initializes a co-occurrence matrix from the input image, using the direct
four neighbor pixels.
The number of entries in the palette of the argument image must be equal to the dimension
of the argument 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