public class MatrixCreator
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
MatrixCreator() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static CoOccurrenceMatrix createCoOccurrenceMatrix(Gray16Image image)
image
- the image for which the matrix is createdpublic 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 imagejava.lang.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 initializedjava.lang.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 methodjava.lang.IllegalArgumentException
- if either matrix is null or if the dimensions are not equal