1 #ifndef vpgl_io_perspective_camera_hxx_ 2 #define vpgl_io_perspective_camera_hxx_ 51 std::cerr <<
"I/O ERROR: vpgl_perspective_camera::b_read(vsl_b_istream&)\n" 52 <<
" Unknown version number "<< ver <<
'\n';
53 is.
is().clear(std::ios::badbit);
66 #define VPGL_IO_PERSPECTIVE_CAMERA_INSTANTIATE(T) \ 67 template void vsl_b_write(vsl_b_ostream & os, vpgl_perspective_camera<T > const& camera); \ 68 template void vsl_b_read(vsl_b_istream & is, vpgl_perspective_camera<T > &camera); \ 69 template void vsl_print_summary(std::ostream& os,const vpgl_perspective_camera<T > & b) 71 #endif // vpgl_io_perspective_camera_hxx_ A class for the perspective camera model.
void set_rotation(const vgl_rotation_3d< T > &R)
vnl_vector_fixed< T, 3 > as_rodrigues() const
void set_camera_center(const vgl_point_3d< T > &camera_center)
std::istream & is() const
const vpgl_calibration_matrix< T > & get_calibration() const
const vgl_rotation_3d< T > & get_rotation() const
void set_calibration(const vpgl_calibration_matrix< T > &K)
Setters and getters.
const vgl_point_3d< T > & get_camera_center() const
This class implements the perspective camera class as described in Hartley & Zisserman as a finite ca...
void vsl_b_write(vsl_b_ostream &os, vpgl_perspective_camera< T > const &camera)
Binary save camera to stream.
void vsl_b_read(vsl_b_istream &is, vpgl_perspective_camera< T > &camera)
Binary load camera from stream.
void vsl_print_summary(std::ostream &os, const vpgl_perspective_camera< T > &c)
Print human readable summary of object to a stream.