12345678910111213141516171819202122 |
- #include <opencv2/core.hpp>
- #include <opencv2/stereo.hpp>
- using namespace cv;
- using namespace std;
- int main(int argc, char* argv[])
- {
- //! [create]
- Ptr<stereo::QuasiDenseStereo> stereo = stereo::QuasiDenseStereo::create(cv::Size(5,5));
- //! [create]
- //! [write]
- std::string parameterFileLocation = "./parameters.yaml";
- if (argc > 1)
- parameterFileLocation = argv[1];
- stereo->saveParameters(parameterFileLocation);
- //! [write]
- return 0;
- }
|