Skip to content

Commit

Permalink
fix: Corrected unassigned depth filenam in args
Browse files Browse the repository at this point in the history
depth image 2 was not being correctly assigned a default in args due to a cut and
paste error.

Also updated the help text to reflect the correct default output file name.
  • Loading branch information
Scoobadood committed Nov 6, 2016
1 parent 565e15a commit ee7e7d2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions main_scene_flow_impair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ bool parse_arguments( int num_arg, char *argv[], Launch_args& args) {
args.intensity_filename_1 = "i1.png";
args.intensity_filename_2 = "i2.png";
args.depth_filename_1 = "z1.png";
args.depth_filename_1 = "z2.png";
args.output_filename_root = "out";
args.depth_filename_2 = "z2.png";
args.output_filename_root = "pdflow";

// Now check what's provided
bool parsed_ok = true;
Expand Down Expand Up @@ -144,7 +144,7 @@ int main(int num_arg, char *argv[])
printf(" --i2 <filename> The second RGB image file name. Defaults to i2.png\n" );
printf(" --z1 <filename> The first depth image file name. Defaults to z1.png\n" );
printf(" --z2 <filename> The second depth image file name. Defaults to z2.png\n" );
printf(" --out <filename> The output file name root. Omit file extension. Defaults to \n" );
printf(" --out <filename> The output file name root. Omit file extension. Defaults to pdflow\n" );
getwchar();
return 1;
}
Expand All @@ -153,7 +153,12 @@ int main(int num_arg, char *argv[])
// Main operations
//==============================================================================

PD_flow_opencv sceneflow(args.rows, args.intensity_filename_1, args.intensity_filename_2, args.depth_filename_1, args.depth_filename_2, args.output_filename_root);
PD_flow_opencv sceneflow(args.rows,
args.intensity_filename_1,
args.intensity_filename_2,
args.depth_filename_1,
args.depth_filename_2,
args.output_filename_root);

//Initialize CUDA and set some internal variables
sceneflow.initializeCUDA();
Expand Down

0 comments on commit ee7e7d2

Please sign in to comment.