1 #ifndef vpgl_io_proj_camera_hxx_ 2 #define vpgl_io_proj_camera_hxx_ 34 std::cerr <<
"I/O ERROR: vpgl_proj_camera::b_read(vsl_b_istream&)\n" 35 <<
" Unknown version number "<< ver <<
'\n';
36 is.
is().clear(std::ios::badbit);
49 #define VPGL_IO_PROJ_CAMERA_INSTANTIATE(T) \ 50 template void vsl_b_write(vsl_b_ostream & os, vpgl_proj_camera<T > const& camera); \ 51 template void vsl_b_read(vsl_b_istream & is, vpgl_proj_camera<T > &camera); \ 52 template void vsl_print_summary(std::ostream& os,const vpgl_proj_camera<T > & b) 54 #endif // vpgl_io_proj_camera_hxx_
std::istream & is() const
virtual bool set_matrix(const vnl_matrix_fixed< T, 3, 4 > &new_camera_matrix)
Setters mirror the constructors and return true if the setting was successful.
void vsl_b_write(vsl_b_ostream &os, vpgl_proj_camera< T > const &camera)
Binary save camera to stream.
A camera model using the standard 3x4 matrix representation.
const vnl_matrix_fixed< T, 3, 4 > & get_matrix() const
Return a copy of the camera matrix.
void vsl_print_summary(std::ostream &os, const vpgl_proj_camera< T > &c)
Print human readable summary of object to a stream.
void vsl_b_read(vsl_b_istream &is, vpgl_proj_camera< T > &camera)
Binary load camera from stream.