boofcv.alg.geo.robust
Class Affine2DCodec
- java.lang.Object
-
- boofcv.alg.geo.robust.Affine2DCodec
-
- All Implemented Interfaces:
- ModelCodec<Affine2D_F64>
public class Affine2DCodec extends java.lang.Object implements ModelCodec<Affine2D_F64>
Converts anAffine2D_F64to and from an array parameterized format.
-
-
Constructor Summary
Constructors Constructor and Description Affine2DCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddecode(double[] input, Affine2D_F64 model)Converts the parameter array into a model.static voiddecodeStatic(double[] param, Affine2D_F64 model)voidencode(Affine2D_F64 model, double[] param)Converts the provided model into the array format.static voidencodeStatic(Affine2D_F64 model, double[] param)intgetParamLength()Number of elements in array encoded parameters.
-
-
-
Method Detail
-
getParamLength
public int getParamLength()
Description copied from interface:ModelCodecNumber of elements in array encoded parameters.- Specified by:
getParamLengthin interfaceModelCodec<Affine2D_F64>
-
decode
public void decode(double[] input, Affine2D_F64 model)Description copied from interface:ModelCodecConverts the parameter array into a model.- Specified by:
decodein interfaceModelCodec<Affine2D_F64>- Parameters:
input- input model parameters.model- Option (can be null) model.
-
decodeStatic
public static void decodeStatic(double[] param, Affine2D_F64 model)
-
encode
public void encode(Affine2D_F64 model, double[] param)
Description copied from interface:ModelCodecConverts the provided model into the array format.- Specified by:
encodein interfaceModelCodec<Affine2D_F64>- Parameters:
model- Input model.param- Output parameterized model. Can be null.
-
encodeStatic
public static void encodeStatic(Affine2D_F64 model, double[] param)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG