Template Function aslam::createCamera(const Eigen::VectorXd&, uint32_t, uint32_t, const Eigen::VectorXd&)

Function Documentation

template<typename CameraType, typename DistortionType>
CameraType::Ptr aslam::createCamera(const Eigen::VectorXd &intrinsics, uint32_t image_width, uint32_t image_height, const Eigen::VectorXd &distortion_parameters)

A factory function to create a derived class camera.

This function takes vectors of intrinsics and distortion parameters and creates a camera.

  • intrinsics[in] A vector of projection intrinsic parameters.

  • image_width[in] Image width in pixels.

  • image_height[in] Image height in pixels.

  • distortion_parameters[in] The parameters of the distortion object.


A new camera based on the template types.