Skip to content

Commit

Permalink
refactor: Moved Launch_args from headre into main
Browse files Browse the repository at this point in the history
Experimented with deifning them in the scene_flow_impair header but
that's clearly the wrong place. they relate only to parsing args so
rightly belong in the main_... file
  • Loading branch information
Scoobadood committed Nov 6, 2016
1 parent 73edafd commit 565e15a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
15 changes: 15 additions & 0 deletions main_scene_flow_impair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@
using namespace std;




//==================================================================
// Arguments for running the algorithm - parsed from command line
//==================================================================
struct Launch_args {
unsigned int rows;
unsigned int show_help;
const char *intensity_filename_1;
const char *intensity_filename_2;
const char *depth_filename_1;
const char *depth_filename_2;
const char *output_filename_root;
};

/**
* Parse arguments from the command line. Valid arguments are:
* --help (in which case other args are ignored)
Expand Down
22 changes: 6 additions & 16 deletions scene_flow_impair.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@

#endif



//==================================================================
// Arguments for running the algorithm - parsed from command line
//==================================================================
struct Launch_args {
unsigned int rows;
unsigned int show_help;
const char *intensity_filename_1;
const char *intensity_filename_2;
const char *depth_filename_1;
const char *depth_filename_2;
const char *output_filename_root;
};

//==================================================================
// PD-Flow class (using openCV)
//==================================================================
Expand Down Expand Up @@ -119,7 +104,12 @@ class PD_flow_opencv {
void showImages();
void showAndSaveResults();

PD_flow_opencv(unsigned int rows_config, const char *intensity_filename_1="i1.png", const char *intensity_filename_2="i2.png", const char *depth_filename_1="z1.png", const char *depth_filename_2="z2.png", const char* output_filename_root="pdflow");
PD_flow_opencv( unsigned int rows_config,
const char *intensity_filename_1="i1.png",
const char *intensity_filename_2="i2.png",
const char *depth_filename_1="z1.png",
const char *depth_filename_2="z2.png",
const char* output_filename_root="pdflow");
};


Expand Down

0 comments on commit 565e15a

Please sign in to comment.