Class AlgorithmRegChamfer.CostFunction
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.registration.AlgorithmRegChamfer.CostFunction
-
- All Implemented Interfaces:
AlgorithmOptimizeFunctionBase
- Enclosing class:
- AlgorithmRegChamfer
private class AlgorithmRegChamfer.CostFunction extends java.lang.Object implements AlgorithmOptimizeFunctionBase
Class for specifying optimization function for AlgorithmSimplexOpt.
-
-
Constructor Summary
Constructors Constructor Description CostFunction()
CostFunction constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cost(double[] x)
Calculated cost.double
cost(TransMatrix tMatrix)
Filler to implement cost functions from AlgorithmOptimizeFunctionBase.double
cost(TransMatrixd tMatrix)
Filler to implement cost functions from AlgorithmOptimizeFunctionBase.int
getCostFunction()
-
-
-
Method Detail
-
getCostFunction
public int getCostFunction()
- Specified by:
getCostFunction
in interfaceAlgorithmOptimizeFunctionBase
-
cost
public double cost(TransMatrix tMatrix)
Filler to implement cost functions from AlgorithmOptimizeFunctionBase.- Specified by:
cost
in interfaceAlgorithmOptimizeFunctionBase
- Parameters:
tMatrix
- Transformation matrix.- Returns:
- -1
-
cost
public double cost(TransMatrixd tMatrix)
Filler to implement cost functions from AlgorithmOptimizeFunctionBase.- Specified by:
cost
in interfaceAlgorithmOptimizeFunctionBase
- Parameters:
tMatrix
- Transformation matrix.- Returns:
- -1
-
cost
public double cost(double[] x)
Calculated cost.- Specified by:
cost
in interfaceAlgorithmOptimizeFunctionBase
- Parameters:
x
- row of p[][]- Returns:
- cost
-
-