Package boofcv.abst.geo.optimization
Class ModelCodecSwapData
java.lang.Object
boofcv.abst.geo.optimization.ModelCodecSwapData
- All Implemented Interfaces:
ModelCodec<DMatrixRMaj>
For use in cases where the model is a matrix and there is a 1-to-1 relationship with model
parameters. Instead of copying the data over it simple puts parameter array reference into
the matrix.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(double[] input, DMatrixRMaj outputModel) void
encode
(DMatrixRMaj model, double[] param) int
-
Constructor Details
-
ModelCodecSwapData
public ModelCodecSwapData(int paramLength)
-
-
Method Details
-
decode
- Specified by:
decode
in interfaceModelCodec<DMatrixRMaj>
-
encode
- Specified by:
encode
in interfaceModelCodec<DMatrixRMaj>
-
getParamLength
public int getParamLength()- Specified by:
getParamLength
in interfaceModelCodec<DMatrixRMaj>
-