Convert a camera parameters object into a struct


paramStruct = toStruct(cameraParams)


paramStruct = toStruct(cameraParams) returns a struct containing the camera parameters in the cameraParams input object. You can use the struct to create an identical cameraParameters object. Use the struct for C code generation. You can call toStruct, and then pass the resulting structure into the generated code, which re-creates the cameraParameters object.

Input Arguments

expand all

Camera parameters, specified as a cameraParameters object. The object contains the parameters for the camera.

Output Arguments

expand all

Camera parameters, returned as a struct.

Introduced in R2015a