Skip to content

Commit

Permalink
Remove forward-backward flow merging from command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Zhao committed Apr 26, 2017
1 parent 1f682d3 commit 0a5c868
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
23 changes: 10 additions & 13 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,11 @@ VARIANT 2 (Manually select operating point X=1-4, automatically selects coarsest

VARIANT 3 (Set all parameters explicitly):

` ./run_*_* image1.png image2.png outputfile p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20`
` ./run_*_* image1.png image2.png outputfile p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19`

Example for variant 3 using operating point 2 of the paper:

` ./run_OF_INT in1.png int2.png out.flo 5 3 12 12 0.05 0.95 0 8 0.40 0 1 0 1 10 10 5 1 3 1.6 2 `


` ./run_OF_INT in1.png int2.png out.flo 5 3 12 12 0.05 0.95 0 8 0.40 1 0 1 10 10 5 1 3 1.6 2 `

Parameters:
```
Expand All @@ -76,15 +74,14 @@ Parameters:
5./6./7. Early stopping parameters
8. Patch size (here: 8)
9. Patch overlap (here: 0.4)
10.Use forward-backward consistency (here: 0/no)
11.Mean-normalize patches (here: 1/yes)
12.Cost function (here: 0/L2) Alternatives: 1/L1, 2/Huber, 10/NCC
13.Use TV refinement (here: 1/yes)
14./15./16. TV parameters alpha,gamma,delta (here 10,10,5)
17. Number of TV outer iterations (here: 1)
18. Number of TV solver iterations (here: 3)
19. TV SOR value (here: 1.6)
20. Verbosity (here: 2) Alternatives: 0/no output, 1/only flow runtime, 2/total runtime
10.Mean-normalize patches (here: 1/yes)
11.Cost function (here: 0/L2) Alternatives: 1/L1, 2/Huber, 10/NCC
12.Use TV refinement (here: 1/yes)
13./14./15. TV parameters alpha,gamma,delta (here 10,10,5)
16. Number of TV outer iterations (here: 1)
17. Number of TV solver iterations (here: 3)
18. TV SOR value (here: 1.6)
19. Verbosity (here: 2) Alternatives: 0/no output, 1/only flow runtime, 2/total runtime
```


Expand Down
5 changes: 2 additions & 3 deletions src/run_dense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ int main( int argc, char** argv )
// *** Parse rest of parameters, See oflow.h for definitions.
int lv_f, lv_l, maxiter, miniter, patchsz, patnorm, costfct, tv_innerit, tv_solverit, verbosity;
float mindprate, mindrrate, minimgerr, poverl, tv_alpha, tv_gamma, tv_delta, tv_sor;
bool usefbcon, usetvref;
bool usetvref;
//bool hasinfile; // initialization flow file
//char *infile = nullptr;

if (argc<=5) // Use operation point X, set scales automatically
{
mindprate = 0.05; mindrrate = 0.95; minimgerr = 0.0;
usefbcon = 0; patnorm = 1; costfct = 0;
patnorm = 1; costfct = 0;
tv_alpha = 10.0; tv_gamma = 10.0; tv_delta = 5.0;
tv_innerit = 1; tv_solverit = 3; tv_sor = 1.6;
verbosity = 2; // Default: Plot detailed timings
Expand Down Expand Up @@ -239,7 +239,6 @@ int main( int argc, char** argv )
minimgerr = atof(argv[acnt++]);
patchsz = atoi(argv[acnt++]);
poverl = atof(argv[acnt++]);
usefbcon = atoi(argv[acnt++]);
patnorm = atoi(argv[acnt++]);
costfct = atoi(argv[acnt++]);
usetvref = atoi(argv[acnt++]);
Expand Down

0 comments on commit 0a5c868

Please sign in to comment.