Permalink
Browse files

stereo:Must check if disparity-estimation-dem-error > 0

  • Loading branch information...
oleg-alexandrov committed Nov 29, 2013
1 parent 2c2f519 commit deffbe5b3e02a5238b1a7790720d852ee03d1a7b
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/asp/Tools/stereo.cc
View
@@ -213,6 +213,15 @@ namespace asp {
<< usage << general_options );
}
+ if (stereo_settings().seed_mode == 2 &&
+ stereo_settings().disparity_estimation_dem_error <= 0.0){
+ vw_throw( ArgumentErr()
+ << "The value of disparity-estimation-dem-error"
+ << " must be positive.\n\n"
+ << usage << general_options );
+
+ }
+
asp::create_out_dir(opt.out_prefix);
opt.session.reset( asp::StereoSession::create(opt.stereo_session_string,
opt, opt.in_file1,

0 comments on commit deffbe5

Please sign in to comment.