src/GRAPHGEN/graph_code_generator.cpp
// This function defines and returns the string that should be put before each (main) 
// tree when generating the code for a forest of decision trees. The string contains 
// an if to check whether the end of a line is reached and a goto to the corresponding 
// tree in the end line forest. The string is specific for algorithms which exploit a 
// mask with a horizontal shift of one pixel like most of the thinning algorithms, PRED, 
// SAUF, CTB and so on. When the end line forest is not generated a different string 
// should be used, for example replacing the goto with a continue and changing the if
// condition accordingly. 
This function defines and returns the string that should be put before each (main)
tree when generating the code for a forest of decision trees. The string contains
an if to check whether the end of a line is reached and a goto to the corresponding
tree in the end line forest. The string is specific for algorithms which exploit a
mask with a horizontal shift of one pixel like most of the thinning algorithms, PRED,
SAUF, CTB and so on. When the end line forest is not generated a different string
should be used, for example replacing the goto with a continue and changing the if
condition accordingly.
This function defines and returns the string that should be put before each ( main ) tree when generating the code for a forest of decision trees . The string contains an if to check whether the end of a line is reached and a goto to the corresponding tree in the end line forest . The string is specific for algorithms which exploit a mask with a horizontal shift of one pixel like most of the thinning algorithms PRED SAUF CTB and so on . When the end line forest is not generated a different string should be used for example replacing the goto with a continue and changing the if condition accordingly .
BEFORE_AFTER_FUNC(BeforeMainShiftOne)
{
    return prefix + "tree_" + to_string(index) + ": if ((c+=1) >= w - 1) goto " +
           prefix + "break_0_" + to_string(mapping[0][index]) + ";\n";
}
BEFORE_AFTER_FUNC ( BeforeMainShiftOne ) { return prefix + " " + to_string ( index ) + " " + prefix + " " + to_string ( mapping [ 0 ] [ index ] ) + " \n " ; }
This function defines and returns the string that should be put before each (main)
tree when generating the code for a forest of decision trees.
This function defines and returns the string that should be put before each ( main ) tree when generating the code for a forest of decision trees .