parametersController.hpp 810 B

1234567891011121314151617181920212223242526272829303132333435
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. #ifndef PARAMETERS_CONTROLLER_HPP
  5. #define PARAMETERS_CONTROLLER_HPP
  6. #include <string>
  7. #include <opencv2/core.hpp>
  8. #include "calibCommon.hpp"
  9. namespace calib {
  10. class parametersController
  11. {
  12. protected:
  13. captureParameters mCapParams;
  14. internalParameters mInternalParameters;
  15. bool loadFromFile(const std::string& inputFileName);
  16. public:
  17. parametersController();
  18. parametersController(cv::Ptr<captureParameters> params);
  19. captureParameters getCaptureParameters() const;
  20. internalParameters getInternalParameters() const;
  21. bool loadFromParser(cv::CommandLineParser& parser);
  22. };
  23. }
  24. #endif