de.unihalle.informatik.MiToBo.features.texture
Class FeatureCalculatorHaralickMeasuresResult

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.features.texture.FeatureCalculatorHaralickMeasuresResult
All Implemented Interfaces:
FeatureCalculatorResult

@ALDParametrizedClass
public class FeatureCalculatorHaralickMeasuresResult
extends Object
implements FeatureCalculatorResult

Class representing the result of statistical feature calculations.

Author:
moeller

Constructor Summary
FeatureCalculatorHaralickMeasuresResult(double[] value)
          Default constructor.
 
Method Summary
 int getDimensionality()
          Returns the dimension of the result object.
 double getNumericalValue(int dim)
          Returns a numerical value representing the requested result component.
 String getOpIdentifier()
          Method returns an identifier characterizing the operator.
 Object getResult()
          Returns the result data object of the calculator.
 String getResultIdentifier(int dim)
          Method returns an identifier characterizing the related component of the result.
 String getTableEntry(int dim)
          Returns entry in requested field as string representation.
 boolean isConvertableToNumericalData()
          Indicates if result data can be 'condensed' to numerical values, e.g., for visualization purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCalculatorHaralickMeasuresResult

public FeatureCalculatorHaralickMeasuresResult(double[] value)
Default constructor.

Parameters:
value - Statistical measure calculated.
Method Detail

getTableEntry

public String getTableEntry(int dim)
Description copied from interface: FeatureCalculatorResult
Returns entry in requested field as string representation.

Specified by:
getTableEntry in interface FeatureCalculatorResult
Parameters:
dim - Index of the desired component of the result.
Returns:
String representation of the value.

getResult

public Object getResult()
Description copied from interface: FeatureCalculatorResult
Returns the result data object of the calculator.

Specified by:
getResult in interface FeatureCalculatorResult
Returns:
Result data object.

getOpIdentifier

public String getOpIdentifier()
Description copied from interface: FeatureCalculatorResult
Method returns an identifier characterizing the operator.

The string is for example included in the headers of result tables.

Specified by:
getOpIdentifier in interface FeatureCalculatorResult
Returns:
Identifier string.

isConvertableToNumericalData

public boolean isConvertableToNumericalData()
Description copied from interface: FeatureCalculatorResult
Indicates if result data can be 'condensed' to numerical values, e.g., for visualization purposes.

If this method returns true it is expected that for each component of the result the method FeatureCalculatorResult.getNumericalValue(int) returns a proper numerical value.

Specified by:
isConvertableToNumericalData in interface FeatureCalculatorResult
Returns:
True, if result data can be represented numerically.

getNumericalValue

public double getNumericalValue(int dim)
Description copied from interface: FeatureCalculatorResult
Returns a numerical value representing the requested result component.

This method is linked to FeatureCalculatorResult.isConvertableToNumericalData(), i.e. is only expected to return proper results if that function returns true.

Specified by:
getNumericalValue in interface FeatureCalculatorResult
Parameters:
dim - Index of the desired component of the result.
Returns:
Numerical result value.

getDimensionality

public int getDimensionality()
Description copied from interface: FeatureCalculatorResult
Returns the dimension of the result object.

If a single object or value is calculated the dimension should be one. In case of, e.g., arrays containing multiple values the length of the array should be returned.

Specified by:
getDimensionality in interface FeatureCalculatorResult
Returns:
Dimensionality of the result data.

getResultIdentifier

public String getResultIdentifier(int dim)
Description copied from interface: FeatureCalculatorResult
Method returns an identifier characterizing the related component of the result.

Specified by:
getResultIdentifier in interface FeatureCalculatorResult
Returns:
Identifier string.


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.