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
  • intrinsics[in] A vector of projection intrinsic parameters.

  • image_width[in] Image width in pixels.

  • image_height[in] Image height in pixels.

Returns

A new camera based on the template types.