We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53d961c commit 4f2a35fCopy full SHA for 4f2a35f
cc3d/cc3d.hpp
@@ -321,10 +321,8 @@ uint32_t* compute_foreground_index(
321
const int64_t voxels = sx * sy * sz;
322
uint32_t* runs = new uint32_t[2*sy*sz]();
323
324
- size_t count = 0; // number of transitions between labels
325
int64_t row = 0;
326
for (int64_t loc = 0; loc < voxels; loc += sx, row++) {
327
- count += (in_labels[loc] != 0);
328
size_t index = (row << 1);
329
for (int64_t x = 0; x < sx; x++) {
330
if (in_labels[loc + x]) {
0 commit comments