|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.MiToBo.core.operator.MTBOperator
de.unihalle.informatik.MiToBo.features.FeatureCalculator
de.unihalle.informatik.MiToBo.features.texture.FeatureCalculatorHaralickMeasures
@ALDAOperator(genericExecutionMode=ALL, level=STANDARD, allowBatchMode=false) @ALDDerivedClass public class FeatureCalculatorHaralickMeasures
Calculates set of Haralick co-occurrence texture features from an image.
The operator expects that the input image does not contain more than 256 different gray-values, color images are completely rejected. For saving memory the operator first checks the maximal gray-value in the image and updates the size of the gray-level co-occurence matrices accordingly. Subsequently, the following measures are calculated:
Nested Class Summary | |
---|---|
static class |
FeatureCalculatorHaralickMeasures.HaralickDirection
Directions available for matrix calculations. |
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode |
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.MiToBo.features.FeatureCalculator |
---|
inImg, resultObj |
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
FeatureCalculatorHaralickMeasures()
Default constructor. |
Method Summary | |
---|---|
protected double[] |
calcFeatures(double[][] matrix)
Extracts Haralick features from given matrix. |
protected double[][] |
calcMatrix(FeatureCalculatorHaralickMeasures.HaralickDirection dir)
Extracts the co-occurence matrix for the given distance and direction. |
void |
doIsotropicCalcutations(boolean flag)
Set flag for isotropic calculations. |
void |
operate()
|
void |
setDirections(Vector<FeatureCalculatorHaralickMeasures.HaralickDirection> dirs)
Directions to be analyzed. |
void |
setDistance(int dist)
Specify distance to be used in calculations. |
void |
setFlagThrinkMatrix(boolean b)
Flag for thrinking matrix if possible. |
void |
validateCustom()
|
Methods inherited from class de.unihalle.informatik.MiToBo.features.FeatureCalculator |
---|
getResultData, setInputImage |
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator |
---|
readResolve |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureCalculatorHaralickMeasures() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public void validateCustom() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
validateCustom
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public void operate()
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
protected double[][] calcMatrix(FeatureCalculatorHaralickMeasures.HaralickDirection dir)
protected double[] calcFeatures(double[][] matrix)
Order of the features in the result vector is as follows: 0 = homogenity (also known as energy) 1 = contrast (|i-j|² * p(i,j)) 2 = local homogeneity 3 = entropy 4 = correlation 5 = auto-correlation 6 = dissimilarity 7 = cluster shade 8 = cluster prominence 9 = maximum probability
matrix
- Normalized co-occurence matrix.
public void doIsotropicCalcutations(boolean flag)
flag
- If true, isotropic calculations are done.public void setDistance(int dist)
dist
- Distance to be used (in pixels).public void setDirections(Vector<FeatureCalculatorHaralickMeasures.HaralickDirection> dirs)
dirs
- Set of directions to consider.FeatureCalculatorHaralickMeasures.HaralickDirection
public void setFlagThrinkMatrix(boolean b)
b
- If true, matrix size is reduced, otherwise it remains 256x256.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |