|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.ops.Operation
net.sourceforge.jiu.color.analysis.TextureAnalysis
This class determines a number of properties for a given co-occurrence matrix.
The only input parameter is a mandatory co-occurrence matrix object
to be specified using setMatrix(net.sourceforge.jiu.color.data.CoOccurrenceMatrix)
.
Then process()
must be called.
After that, the various properties can be retrieved using the
corresponding get methods, e.g. getContrast()
,
getEnergy()
etc.
The following resources were helpful when creating this class:
Constructor Summary | |
TextureAnalysis()
|
Method Summary | |
int |
getContrast()
Returns the contrast value determined in process() .
|
double |
getCorrelation()
Returns the correlation determined in process() . |
int |
getDissimilarity()
Returns the dissimilarity value determined in process() . |
int |
getEnergy()
Returns the energy value determined in process() . |
double |
getEntropy()
Returns the entropy value determined in process() . |
double |
getHomogeneity()
Returns the homogeneity value determined in process() .
|
int |
getSum()
Returns the sum of all entries in the matrix. |
boolean |
isSymmetrical()
|
void |
process()
Run over the input matrix and determine contrast, energy, entropy and homogeneity of that matrix. |
void |
setMatrix(CoOccurrenceMatrix m)
Sets the matrix to be used by this operation to the argument value. |
Methods inherited from class net.sourceforge.jiu.ops.Operation |
addProgressListener, addProgressListeners, getAbort, removeProgressListener, setAbort, setProgress, setProgress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextureAnalysis()
Method Detail |
public int getContrast()
process()
.
Also called inertia.
public double getCorrelation()
process()
.
public int getDissimilarity()
process()
.
public int getEnergy()
process()
.
public double getEntropy()
process()
.
public double getHomogeneity()
process()
.
Also called inverse difference moment.
public int getSum()
public boolean isSymmetrical()
public void process() throws MissingParameterException
process
in class Operation
MissingParameterException
- if no co-occurrence matrix was provided using
setMatrix(net.sourceforge.jiu.color.data.CoOccurrenceMatrix)
public void setMatrix(CoOccurrenceMatrix m)
m
- the matrix for which the various properties will be computed
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |