diff --git a/samples/cpp/stereo_match.cpp b/samples/cpp/stereo_match.cpp index 16ac6b2f11..f3616f60e6 100644 --- a/samples/cpp/stereo_match.cpp +++ b/samples/cpp/stereo_match.cpp @@ -15,6 +15,14 @@ using namespace cv; +void print_help() +{ + printf("\nDemo stereo matching converting L and R images into disparity and point clouds\n"); + printf("\nUsage: stereo_match [--algorithm=bm|sgbm|hh] [--blocksize=]\n" + "[--max-disparity=] [-i ] [-e ]\n" + "[--no-display] [-o ] [-p ]\n"); +} + void saveXYZ(const char* filename, const Mat& mat) { const double max_z = 1.0e4; @@ -31,12 +39,6 @@ void saveXYZ(const char* filename, const Mat& mat) fclose(fp); } -void print_help() -{ - printf("Usage: stereo_match [--algorithm=bm|sgbm|hh] [--blocksize=]\n" - "[--max-disparity=] [-i ] [-e ]\n" - "[--no-display] [-o ] [-p ]\n"); -} int main(int argc, char** argv) {