Package boofcv.abst.geo.optimization
Class ResidualsCodecToMatrix<Model,Observation>
java.lang.Object
boofcv.abst.geo.optimization.ResidualsCodecToMatrix<Model,Observation>
- All Implemented Interfaces:
FunctionInOut
,FunctionNtoM
Computes residual errors for a set of observations from a model.
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<Observation>
protected ModelCodec<Model>
protected Model
protected ModelObservationResidualN<Model,
Observation> -
Constructor Summary
ConstructorDescriptionResidualsCodecToMatrix
(ModelCodec<Model> param, ModelObservationResidualN<Model, Observation> residual, Model storage) Configures algorithm -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
process
(double[] input, double[] output) void
setObservations
(List<Observation> obs)
-
Field Details
-
param
-
obs
-
residual
-
pose
-
-
Constructor Details
-
ResidualsCodecToMatrix
public ResidualsCodecToMatrix(ModelCodec<Model> param, ModelObservationResidualN<Model, Observation> residual, Model storage) Configures algorithm- Parameters:
param
- Converts parameters into epipolar matrixresidual
- Function for computing the residualsstorage
- Storage for converted model. Will be modified.
-
-
Method Details
-
setObservations
-
getNumOfInputsN
public int getNumOfInputsN()- Specified by:
getNumOfInputsN
in interfaceFunctionInOut
-
getNumOfOutputsM
public int getNumOfOutputsM()- Specified by:
getNumOfOutputsM
in interfaceFunctionInOut
-
process
public void process(double[] input, double[] output) - Specified by:
process
in interfaceFunctionNtoM
-