mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-22 07:31:26 +08:00
Merge pull request #1941 from surgical-vision:quasi-dense-stereo
Implementation of Quasi Dense Stereo algorithm. (#1941) * initial commit. * Remove license header. * Fix python wrap flags * Change std::string to cv::String, in function declarations, to resolve compilation issues. * Add python wrapper extending header * Fix python wrapper conflicts * Fix implicit type conversions * Change C API types and enums to C++. * Remove redundant included headers and move wanted headers to src/precomp.hpp * Remove saturate header * Remove unnecessary python wrapping flags * Removed defaults parameter header * Split declaration and implementation of the class using Pimpl. * Fix to comply with new public API. * Remove unnecessary modules * Fix maybe-uninitialized warnings on linux * Migration to stereo module * Remove CV_PROP_RW flag. * Remove CV_EXPORTS flags from class members. * Fix: Removed misplaced flag * Remove empty lines. * Move queue to private headers. * Fix default arguments of public methods. * Add authors information and switch to the compact version of license header. * Reorganize and fix markdown files. Create a table of content and move tutorials in new directories. Modify samples and tutorials to use snippet and include Doxygen commands. * Change argument name dMatch->denseMatch, to avoid confusion with cv::DMatch build-in type. * Remove duplicate snippet. * Fix: change vector resize to reserve. * Fix: replace extensive license header with the compact version.
This commit is contained in:

committed by
Alexander Alekhin

parent
2522124473
commit
b1e9dd5454
22
modules/stereo/samples/export_param_file.cpp
Normal file
22
modules/stereo/samples/export_param_file.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user