boofcv.alg.geo.pose
Class PnPRodriguesCodec
- java.lang.Object
-
- boofcv.alg.geo.pose.PnPRodriguesCodec
-
- All Implemented Interfaces:
- ModelCodec<Se3_F64>
public class PnPRodriguesCodec extends java.lang.Object implements ModelCodec<Se3_F64>
Encoding an decoding a rotation and translation where the rotation is encoded as a 3-vector Rodrigues coordinate.
-
-
Constructor Summary
Constructors Constructor and Description PnPRodriguesCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddecode(double[] input, Se3_F64 outputModel)Converts the parameter array into a model.voidencode(Se3_F64 input, double[] output)Converts the provided model into the array format.intgetParamLength()Number of elements in array encoded parameters.
-
-
-
Method Detail
-
decode
public void decode(double[] input, Se3_F64 outputModel)Description copied from interface:ModelCodecConverts the parameter array into a model.- Specified by:
decodein interfaceModelCodec<Se3_F64>- Parameters:
input- input model parameters.outputModel- Option (can be null) model.
-
encode
public void encode(Se3_F64 input, double[] output)
Description copied from interface:ModelCodecConverts the provided model into the array format.- Specified by:
encodein interfaceModelCodec<Se3_F64>- Parameters:
input- Input model.output- Output parameterized model. Can be null.
-
getParamLength
public int getParamLength()
Description copied from interface:ModelCodecNumber of elements in array encoded parameters.- Specified by:
getParamLengthin interfaceModelCodec<Se3_F64>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG