1 // This file is part of OpenMVG, an Open Multiple View Geometry C++ library. 2 3 // Copyright (c) 2015 Pierre MOULON. 4 5 // This Source Code Form is subject to the terms of the Mozilla Public 6 // License, v. 2.0. If a copy of the MPL was not distributed with this 7 // file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 9 #ifndef OPENMVG_CAMERAS_CAMERA_INTRINSICS_IO_HPP 10 #define OPENMVG_CAMERAS_CAMERA_INTRINSICS_IO_HPP 11 12 #include <cereal/types/polymorphic.hpp> 13 14 template <class Archive> save(Archive & ar) const15void openMVG::cameras::IntrinsicBase::save( Archive & ar ) const 16 { 17 ar( cereal::make_nvp( "width", w_ ) ); 18 ar( cereal::make_nvp( "height", h_ ) ); 19 } 20 21 template <class Archive> load(Archive & ar)22void openMVG::cameras::IntrinsicBase::load( Archive & ar ) 23 { 24 ar( cereal::make_nvp( "width", w_ ) ); 25 ar( cereal::make_nvp( "height", h_ ) ); 26 } 27 28 #endif // #ifndef OPENMVG_CAMERAS_CAMERA_INTRINSICS_IO_HPP 29