org.ddogleg.fitting.modelset
Interface ModelCodec<T>
-
- All Known Implementing Classes:
- Affine2DCodec, CalibPoseAndPointRodriguesCodec, CodecCylinder3D_F32, CodecCylinder3D_F64, CodecPlaneGeneral3D_F32, CodecPlaneGeneral3D_F64, CodecSphere3D_F32, CodecSphere3D_F64, ModelCodecSwapData, ParamFundamentalEpipolar, PnPRodriguesCodec, Se3ToStereoPoseCodec
public interface ModelCodec<T>Used to convert a model to and from an array parameterized format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voiddecode(double[] input, T outputModel)Converts the parameter array into a model.voidencode(T inputModel, double[] output)Converts the provided model into the array format.intgetParamLength()Number of elements in array encoded parameters.
-
-
-
Method Detail
-
decode
void decode(double[] input, T outputModel)Converts the parameter array into a model.- Parameters:
input- input model parameters.outputModel- Option (can be null) model.
-
encode
void encode(T inputModel, double[] output)
Converts the provided model into the array format.- Parameters:
inputModel- Input model.output- Output parameterized model. Can be null.
-
getParamLength
int getParamLength()
Number of elements in array encoded parameters.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG