Class NamedFeatureCalculatorMulti<T extends FeatureInput>
Object
org.anchoranalysis.image.feature.calculator.NamedFeatureCalculatorMulti<T>
- Type Parameters:
T- feature input type
public final class NamedFeatureCalculatorMulti<T extends FeatureInput> extends Object
A
FeatureCalculatorMulti with associated feature-names.
This class combines a multi-feature calculator with a list of feature names, allowing for named feature calculations.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description NamedFeatureCalculatorMulti(FeatureCalculatorMulti<T> calculator, FeatureNameList names) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)FeatureCalculatorMulti<T>getCalculator()The multi-feature calculator.FeatureNameListgetNames()The list of feature names associated with the calculator.inthashCode()NamedFeatureCalculatorMulti<T>mapCalculator(UnaryOperator<FeatureCalculatorMulti<T>> mapOperator)Creates a new instance by applying a mapping function to the calculator.StringtoString()
-
Constructor Details
-
Method Details
-
mapCalculator
public NamedFeatureCalculatorMulti<T> mapCalculator(UnaryOperator<FeatureCalculatorMulti<T>> mapOperator)Creates a new instance by applying a mapping function to the calculator.- Parameters:
mapOperator- a unary operator that transforms the calculator- Returns:
- a new NamedFeatureCalculatorMulti with the transformed calculator and the same names
-
getCalculator
The multi-feature calculator. -
getNames
The list of feature names associated with the calculator. -
equals
-
hashCode
public int hashCode() -
toString
-