@ALDParametrizedClass public class FeatureCalculatorIntensityStatsResult extends Object implements FeatureCalculatorResult
Modifier and Type | Field and Description |
---|---|
private ImageStatistics.StatValue |
statMeasure
Statistical measure to be calculated.
|
private double |
statValue
Result value, i.e. calculated statistical measure.
|
Constructor and Description |
---|
FeatureCalculatorIntensityStatsResult(ImageStatistics.StatValue mod,
double value)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
@ALDClassParameter(label="Value", dataIOOrder=2) private double statValue
@ALDClassParameter(label="Statistical indicator", dataIOOrder=1) private ImageStatistics.StatValue statMeasure
public FeatureCalculatorIntensityStatsResult(ImageStatistics.StatValue mod, double value)
value
- Statistical measure calculated.public String getTableEntry(int dim)
FeatureCalculatorResult
getTableEntry
in interface FeatureCalculatorResult
dim
- Index of the desired component of the result.public Object getResult()
FeatureCalculatorResult
getResult
in interface FeatureCalculatorResult
public String getOpIdentifier()
FeatureCalculatorResult
The string is for example included in the headers of result tables.
getOpIdentifier
in interface FeatureCalculatorResult
public boolean isConvertableToNumericalData()
FeatureCalculatorResult
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.
isConvertableToNumericalData
in interface FeatureCalculatorResult
public double getNumericalValue(int dim)
FeatureCalculatorResult
This method is linked to FeatureCalculatorResult.isConvertableToNumericalData()
,
i.e. is only expected to return proper results if that function
returns true.
getNumericalValue
in interface FeatureCalculatorResult
dim
- Index of the desired component of the result.public int getDimensionality()
FeatureCalculatorResult
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.
getDimensionality
in interface FeatureCalculatorResult
public String getResultIdentifier(int dim)
FeatureCalculatorResult
getResultIdentifier
in interface FeatureCalculatorResult
dim
- Dimension identifier is requested for.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.