75 #ifndef SLIP_CAMERAMODEL_HPP
76 #define SLIP_CAMERAMODEL_HPP
85 #include <boost/serialization/access.hpp>
86 #include <boost/serialization/split_member.hpp>
87 #include <boost/serialization/version.hpp>
92 template <
typename Type>
110 template <
typename Type>
145 virtual void read(
const std::string& file) = 0;
151 virtual void write(
const std::string& file) = 0;
226 void copy_attributes(
const self& other);
228 template<
class Archive>
229 void save(Archive & ar,
const unsigned int version)
const
232 template<
class Archive>
233 void load(Archive & ar,
const unsigned int version)
236 BOOST_SERIALIZATION_SPLIT_MEMBER()
245 template<
typename Type>
250 template<
typename Type>
256 template<
typename Type>
261 template<
typename Type>
274 #endif //SLIP_CAMERAMODEL_HPP
virtual slip::Point3d< Type > backprojection(const slip::Point2d< Type > &p2, const Type &z)=0
Computes the 3d world point corresponding to the backprojection of an image point.
friend class boost::serialization::access
virtual void read(const std::string &file)=0
Read the CameraModel from a file.
Provides a class to modelize 3d points.
self & operator=(const self &other)
Assign a CameraModel.
virtual slip::Point2d< Type > projection(const slip::Point3d< Type > &p)=0
Computes the projection of a 3d world point onto the image plane.
virtual void compute(const slip::Matrix< Type > &P)=0
Computes the parameters of a camera model.
This is a point2d class, a specialized version of Point<CoordType,DIM> with DIM = 2...
virtual void write(const std::string &file)=0
Write the CameraModel to a file.
virtual ~CameraModel()
Destructor of the CameraModel.
CameraModel()
Default constructor of CameraModel.
Provides a class to manipulate Numerical Matrix.
Provides a class to modelize 2d points.
Define an abstract CameraModel class.
This is a point3d class, a specialized version of Point<CoordType,DIM> with DIM = 3...