1 #ifndef vpgl_io_rational_camera_hxx_ 2 #define vpgl_io_rational_camera_hxx_ 19 std::vector<vpgl_scale_offset<T> > scale_off = camera.
scale_offsets();
21 for (
unsigned i=0; i<scale_off.size(); ++i) {
42 unsigned n_scale_offsets;
44 std::vector<vpgl_scale_offset<T> > scale_off(n_scale_offsets);
45 for (
unsigned i=0; i<n_scale_offsets; ++i) {
56 std::cerr <<
"I/O ERROR: vpgl_rational_camera::b_read(vsl_b_istream&)\n" 57 <<
" Unknown version number "<< ver <<
'\n';
58 is.
is().clear(std::ios::badbit);
71 #define VPGL_IO_RATIONAL_CAMERA_INSTANTIATE(T) \ 72 template void vsl_b_write(vsl_b_ostream & os, vpgl_rational_camera<T > const& camera); \ 73 template void vsl_b_read(vsl_b_istream & is, vpgl_rational_camera<T > &camera); \ 74 template void vsl_print_summary(std::ostream& os,const vpgl_rational_camera<T > & b) 76 #endif // vpgl_io_rational_camera_hxx_
vnl_matrix_fixed< T, 4, 20 > coefficient_matrix() const
get the rational polynomial coefficients in a vnl matrix.
A camera model based on ratios of cubic polynomials.
std::istream & is() const
void vsl_print_summary(std::ostream &os, const vpgl_rational_camera< T > &c)
Print human readable summary of object to a stream.
std::vector< vpgl_scale_offset< T > > scale_offsets() const
get the scale and offsets in a vector.
void set_scale_offsets(std::vector< vpgl_scale_offset< T > > const &scale_offsets)
set coordinate scale and offsets.
void vsl_b_read(vsl_b_istream &is, vpgl_rational_camera< T > &camera)
Binary load camera from stream.
void set_coefficients(std::vector< std::vector< T > > const &rational_coeffs)
set rational polynomial coefficients.
void vsl_b_write(vsl_b_ostream &os, vpgl_rational_camera< T > const &camera)
Binary save camera to stream.