Fixed serious bug. Need to add support for overlapping patches.

parent bcbfe597
......@@ -59,7 +59,7 @@ void initialize_dictionary_association(const binary_matrix& E,
E.copy_row_to(i,rowi);
for (idx_t j = 0; j < N; j++) {
if (j == i) continue;
//std::cout << "density for col " << j << ":" << col_densities[j] << std::endl;
E.copy_row_to(j,rowj);
bool_and(rowi,rowj,iandj);
scores[i].first += iandj.weight();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment