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.

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

  • [in] image_width – Image width in pixels.

  • [in] image_height – Image height in pixels.

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


A new camera based on the template types.