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

Function Documentation

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

A factory function to create a derived class camera without distortion.

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

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

  • [in] image_width – Image width in pixels.

  • [in] image_height – Image height in pixels.

Returns

A new camera based on the template types.