Skip to content

Commit

Permalink
Added flag --nocut to batch_soax that outputs converged snakes withou…
Browse files Browse the repository at this point in the history
…t cutting and grouping
  • Loading branch information
davidmrutkowski committed Dec 31, 2020
1 parent ace3d07 commit 628c4c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions batch_soax.cc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ int main(int argc, char **argv) {
("stretch",
po::value<soax::DataContainer>(&stretch_range)->multitoken(),
"Range of stretching factor (start step end)")
("invert", "Use inverted image intensity");
("invert", "Use inverted image intensity")
("nocut", "Output snakes before cutting at intersections and regrouping");

po::options_description all("Allowed options");
all.add(generic).add(required).add(optional);
Expand Down Expand Up @@ -261,8 +262,10 @@ int main(int argc, char **argv) {
time(&end);
double time_elasped = difftime(end, start);

multisnake->CutSnakesAtTJunctions();
multisnake->GroupSnakes();
if (!(vm.count("nocut"))) {
multisnake->CutSnakesAtTJunctions();
multisnake->GroupSnakes();
}

std::string path_str = image_it->string();
std::string::size_type slash_pos = path_str.find_last_of("/\\");
Expand Down

0 comments on commit 628c4c1

Please sign in to comment.