1 #ifndef vpgl_io_affine_camera_hxx_ 2 #define vpgl_io_affine_camera_hxx_ 38 std::cerr <<
"I/O ERROR: vpgl_affine_camera::b_read(vsl_b_istream&)\n" 39 <<
" Unknown version number "<< ver <<
'\n';
40 is.
is().clear(std::ios::badbit);
53 #define VPGL_IO_AFFINE_CAMERA_INSTANTIATE(T) \ 54 template void vsl_b_write(vsl_b_ostream & os, vpgl_affine_camera<T > const& camera); \ 55 template void vsl_b_read(vsl_b_istream & is, vpgl_affine_camera<T > &camera); \ 56 template void vsl_print_summary(std::ostream& os,const vpgl_affine_camera<T > & b) 58 #endif // vpgl_io_affine_camera_hxx_
A class for the affine camera model.
void vsl_b_read(vsl_b_istream &is, vpgl_affine_camera< T > &camera)
Binary load camera from stream.
void vsl_b_write(vsl_b_ostream &os, vpgl_affine_camera< T > const &camera)
Binary save camera to stream.
std::istream & is() const
void vsl_print_summary(std::ostream &os, const vpgl_affine_camera< T > &c)
Print human readable summary of object to a stream.
const vnl_matrix_fixed< T, 3, 4 > & get_matrix() const
Return a copy of the camera matrix.
void set_viewing_distance(T dist)
set a finite viewing distance to allow the methods below to return finite objects.
bool set_matrix(const vnl_matrix_fixed< T, 3, 4 > &new_camera_matrix) override
Setters mirror the constructors and return true if the setting was successful.
T viewing_distance() const