You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setting this only once means that all edges hare the same cost function. Parameters {1.0, 2.0} lead to the following cst function: c(l_1, l_2) = 1.0 * min(abs(l_1 - l_2), 2.0) as is seen in line135ff of the code.
/* cost types /
using unary_t = UnaryTable<cost_t, simd_w>;
using pairwise_t = PairwiseTruncatedLinear<cost_t, simd_w>;
.......
/ construct pairwise costs */
pairwise = std::unique_ptr<pairwise_t>(new pairwise_t({1.0, 2.0}));
.....
for(luint_t n = 0; n < num_nodes; ++n)
mapmap.set_unary(n, unaries[n].get());
mapmap.set_pairwise(pairwise.get());
why only set pairwise once? what dose "new pairwise_t({1.0, 2.0})" mean ?
Look forward to your reply. Thanks!
The text was updated successfully, but these errors were encountered: